XMLChildrenFilter provides iterator access to XMLStorage child nodes with name filtering. More...
Static Public Member Functions | |
| static IEnumerable< XMLNode > | filterChildren (XMLNode node, string name) |
| static IEnumerable< XMLNode > | filterChildren (XMLPos pos, string name) |
| static IEnumerable< XMLNode > | filterChildren (XMLNode.Children children, string name) |
XMLChildrenFilter provides iterator access to XMLStorage child nodes with name filtering.
Definition at line 48 of file XMLChildrenFilter.cs.
| static IEnumerable<XMLNode> XMLStorage::XMLChildrenFilter::filterChildren | ( | XMLNode | node, |
| string | name | ||
| ) | [inline, static] |
Definition at line 50 of file XMLChildrenFilter.cs.
References XMLStorage::XMLNode::getChildren().
Referenced by filterChildren().
{
return filterChildren(node.getChildren(), name);
}

| static IEnumerable<XMLNode> XMLStorage::XMLChildrenFilter::filterChildren | ( | XMLNode.Children | children, |
| string | name | ||
| ) | [inline, static] |
Definition at line 60 of file XMLChildrenFilter.cs.
References XMLStorage::XMLNode::getName().
{
foreach(XMLNode node in children) {
if (node.getName() == name)
yield return node;
}
}

| static IEnumerable<XMLNode> XMLStorage::XMLChildrenFilter::filterChildren | ( | XMLPos | pos, |
| string | name | ||
| ) | [inline, static] |
Definition at line 55 of file XMLChildrenFilter.cs.
References XMLStorage::XMLPos::cur(), filterChildren(), and XMLStorage::XMLNode::getChildren().
{
return filterChildren(pos.cur().getChildren(), name);
}

1.7.2