ReadElement() public method

Returns the next input node from the XML document, if it is a child element of the specified input node. This essentially determines whether the end tag has been read for the specified node, if so then null is returned. If however the specified node has not had its end tag read then this returns the next element, if that element is a child of the that node.
public ReadElement ( InputNode from ) : InputNode
from InputNode /// this is the input node to read with ///
return InputNode
Beispiel #1
0
 //public String GetValue() {
 //   return reader.ReadValue(this);
 //}
 /// The method is used to acquire the next child attribute of this
 /// element. If the next element from the <c>NodeReader</c>
 /// is not a child node to the element that this represents then
 /// this will return null, which ensures each element represents
 /// a self contained collection of child nodes.
 /// </summary>
 /// <returns>
 /// this returns the next child element of this node
 /// </returns>
 public InputNode GetNext()
 {
     return(reader.ReadElement(this));
 }
Beispiel #2
0
 //public InputNode GetNext() {
 //   return reader.ReadElement(this);
 //}
 /// The method is used to acquire the next child attribute of this
 /// element. If the next element from the <c>NodeReader</c>
 /// is not a child node to the element that this represents then
 /// this will return null, also if the next element does not match
 /// the specified name then this will return null.
 /// </summary>
 /// <param name="name">
 /// this is the name expected fromt he next element
 /// </param>
 /// <returns>
 /// this returns the next child element of this node
 /// </returns>
 public InputNode GetNext(String name)
 {
     return(reader.ReadElement(this, name));
 }