Scans an XML document and returns significant segments, one by one. Segments are (returned properties within parentheses):
- Attribute (name and value)
- Characters (text)
- End tag
- End of document
Remember to call the
close
Inheritance Hierarchy
Apptus.Util.XmlXmlScanner
Namespace: Apptus.Util.Xml
Assembly: Apptus.Esales.ConnectorApi (in Apptus.Esales.ConnectorApi.dll) Version: 4.1.0
Syntax
C#
public class XmlScanner
The XmlScanner type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| XmlScanner(Stream) |
Creates an XML scanner that scans the supplied input stream, positions the scanner on the first significant segment.
| |
| XmlScanner(TextReader) |
Creates an XML scanner that scans the supplied reader, positions the scanner on the first significant segment.
|
Methods
| Name | Description | |
|---|---|---|
| Attribute |
Returns an Attribute holding the name and value of the
current attribute, if such exists. Otherwise returns null.
| |
| Characters |
If the current segment is a characters segment, then returns the
entire text as a string and moves to the next segment.
Otherwise, returns an empty string.
| |
| EndTag |
If the current segment is an end tag with the given name, then moves to the next segment.
Otherwise, throws an exception.
| |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| StartTag |
If the current segment is a start tag, then returns the name of the tag and moves to the next segment. Otherwise, returns null.
| |
| ToString | (Inherited from Object.) |
See Also