pub enum XmlNodeType {
None,
Element,
EndElement,
Text,
CData,
Comment,
ProcessingInstruction,
XmlDeclaration,
DocumentType,
Whitespace,
Attribute,
EndDocument,
}Expand description
The type of the current node in the reader.
These correspond to the different kinds of nodes that the reader can be positioned on while traversing an XML document.
Variants§
None
No node — the reader has not been advanced yet or is in an indeterminate state.
Element
An element start tag, e.g. <div> or <br/>.
For self-closing elements (<br/>), XmlReader::is_empty_element
returns true.
EndElement
An element end tag, e.g. </div>.
Self-closing elements do not produce a separate EndElement node.
Text
A text node containing character data.
CData
A CDATA section, e.g. <![CDATA[...]]>.
Comment
An XML comment, e.g. <!-- comment -->.
ProcessingInstruction
A processing instruction, e.g. <?target data?>.
XmlDeclaration
The XML declaration, e.g. <?xml version="1.0"?>.
DocumentType
A document type declaration, e.g. <!DOCTYPE html>.
Whitespace
A whitespace-only text node in element content.
Attribute
An attribute node — the reader is positioned on an attribute after
calling XmlReader::move_to_first_attribute or
XmlReader::move_to_next_attribute.
EndDocument
The end of the document has been reached.
Trait Implementations§
Source§impl Clone for XmlNodeType
impl Clone for XmlNodeType
Source§fn clone(&self) -> XmlNodeType
fn clone(&self) -> XmlNodeType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more