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
)