Static Public Member Functions

XMLStorage::XMLChildrenFilter Class Reference

XMLChildrenFilter provides iterator access to XMLStorage child nodes with name filtering. More...

List of all members.

Static Public Member Functions

static IEnumerable< XMLNodefilterChildren (XMLNode node, string name)
static IEnumerable< XMLNodefilterChildren (XMLPos pos, string name)
static IEnumerable< XMLNodefilterChildren (XMLNode.Children children, string name)

Detailed Description

XMLChildrenFilter provides iterator access to XMLStorage child nodes with name filtering.

Definition at line 48 of file XMLChildrenFilter.cs.


Member Function Documentation

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);
    }

Here is the call graph for this function:

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;
        }
    }

Here is the call graph for this function:

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);
    }

Here is the call graph for this function:


The documentation for this class was generated from the following file: