The NodeReader object is used to read elements from the specified XML event reader. This reads input node objects that represent elements within the source XML document. This will allow details to be read using input node objects, as long as the end elements for those input nodes have not been ended.

For example, if an input node represented the root element of a document then that input node could read all elements within the document. However, if the input node represented a child element then it would only be able to read its children.

Exemple #1
0
 /// <summary>
 /// Constructor for the <c>InputElement</c> object. This
 /// is used to create an input node that will provide access to
 /// an XML element. All attributes associated with the element
 /// given are extracted and exposed via the attribute node map.
 /// </summary>
 /// <param name="parent">
 /// this is the parent XML element for this
 /// </param>
 /// <param name="reader">
 /// this is the reader used to read XML elements
 /// </param>
 /// <param name="node">
 /// this is the XML element wrapped by this node
 /// </param>
 public InputElement(InputNode parent, NodeReader reader, EventNode node)
 {
     this.map    = new InputNodeMap(this, node);
     this.reader = reader;
     this.parent = parent;
     this.node   = node;
 }
Exemple #2
0
 /// <summary>
 /// Constructor for the <c>InputElement</c> object. This
 /// is used to create an input node that will provide access to
 /// an XML element. All attributes associated with the element
 /// given are extracted and exposed via the attribute node map.
 /// </summary>
 /// <param name="parent">
 /// this is the parent XML element for this
 /// </param>
 /// <param name="reader">
 /// this is the reader used to read XML elements
 /// </param>
 /// <param name="node">
 /// this is the XML element wrapped by this node
 /// </param>
 public InputElement(InputNode parent, NodeReader reader, EventNode node) {
    this.map = new InputNodeMap(this, node);
    this.reader = reader;
    this.parent = parent;
    this.node = node;
 }