SimpleFramework.Xml.Stream.NodeReader.ReadElement C# (CSharp) Méthode

ReadElement() public méthode

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 ///
Résultat InputNode
      public InputNode ReadElement(InputNode from) {
         if(!stack.IsRelevant(from)) {
            return null;
         }
         EventNode event = reader.Next();
         while(event != null) {

Same methods

NodeReader::ReadElement ( InputNode from, String name ) : InputNode

Usage Example

Exemple #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));
 }
All Usage Examples Of SimpleFramework.Xml.Stream.NodeReader::ReadElement