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

SkipElement() public méthode

This method is used to skip an element within the XML document. This will simply read each element from the document until the specified element is at the top of the stack. When the specified element is at the top of the stack this returns.
public SkipElement ( InputNode from ) : void
from InputNode /// this is the element to skip from the XML document ///
Résultat void
      public void SkipElement(InputNode from) {
         while(ReadElement(from) != null);
      }
   }

Usage Example

Exemple #1
0
 /// <summary>
 /// This method is used to skip all child elements from this
 /// element. This allows elements to be effectively skipped such
 /// that when parsing a document if an element is not required
 /// then that element can be completely removed from the XML.
 /// </summary>
 public void Skip()
 {
     reader.SkipElement(this);
 }