Struct qt_core::q_xml_stream_reader::TokenType
source · pub struct TokenType(/* private fields */);
Expand description
This enum specifies the type of token the reader just read.
C++ enum: QXmlStreamReader::TokenType
.
This enum specifies the type of token the reader just read.
Implementations§
source§impl TokenType
impl TokenType
sourcepub const NoToken: TokenType = _
pub const NoToken: TokenType = _
The reader has not yet read anything. (C++ enum variant: NoToken = 0
)
sourcepub const Invalid: TokenType = _
pub const Invalid: TokenType = _
An error has occurred, reported in error() and errorString(). (C++ enum variant: Invalid = 1
)
sourcepub const StartDocument: TokenType = _
pub const StartDocument: TokenType = _
The reader reports the XML version number in documentVersion(), and the encoding as specified in the XML document in documentEncoding(). If the document is declared standalone, isStandaloneDocument() returns true
; otherwise it returns false
. (C++ enum variant: StartDocument = 2
)
sourcepub const EndDocument: TokenType = _
pub const EndDocument: TokenType = _
The reader reports the end of the document. (C++ enum variant: EndDocument = 3
)
sourcepub const StartElement: TokenType = _
pub const StartElement: TokenType = _
The reader reports the start of an element with namespaceUri() and name(). Empty elements are also reported as StartElement, followed directly by EndElement. The convenience function readElementText() can be called to concatenate all content until the corresponding EndElement. Attributes are reported in attributes(), namespace declarations in namespaceDeclarations(). (C++ enum variant: StartElement = 4
)
sourcepub const EndElement: TokenType = _
pub const EndElement: TokenType = _
The reader reports the end of an element with namespaceUri() and name(). (C++ enum variant: EndElement = 5
)
sourcepub const Characters: TokenType = _
pub const Characters: TokenType = _
The reader reports characters in text(). If the characters are all white-space, isWhitespace() returns true
. If the characters stem from a CDATA section, isCDATA() returns true
. (C++ enum variant: Characters = 6
)
sourcepub const Comment: TokenType = _
pub const Comment: TokenType = _
The reader reports a comment in text(). (C++ enum variant: Comment = 7
)
sourcepub const DTD: TokenType = _
pub const DTD: TokenType = _
The reader reports a DTD in text(), notation declarations in notationDeclarations(), and entity declarations in entityDeclarations(). Details of the DTD declaration are reported in in dtdName(), dtdPublicId(), and dtdSystemId(). (C++ enum variant: DTD = 8
)
sourcepub const EntityReference: TokenType = _
pub const EntityReference: TokenType = _
sourcepub const ProcessingInstruction: TokenType = _
pub const ProcessingInstruction: TokenType = _
The reader reports a processing instruction in processingInstructionTarget() and processingInstructionData(). (C++ enum variant: ProcessingInstruction = 10
)