XmlDoctype class
A XML DocType declaration.
Constructors
Properties
- element → String
-
The name of the DocType declaration.
final
-
externalDtd
→ List<
XmlNode> ? -
The parsed DTD elements from the external DTD file.
final
- externalDtdName → String?
-
The optional name of the external DTD file.
final
- externalDtdUri → String?
-
The URI to the external DTD file.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
internalDtd
→ List<
XmlNode> ? -
The parsed DTD elements nested within this DocType.
final
- isPublic → bool
-
Whether the
PUBLIC
flag is declared.final - isSystem → bool
-
Whether the
SYSTEM
flag is declared.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? element, bool? isSystem, bool? isPublic, String? externalDtdName, String? externalDtdUri, List< XmlNode> ? externalDtd, List<XmlNode> ? internalDtd, bool copyNull = false}) → XmlDoctype - Copies this DocType declaration with the provided values.
-
loadExternalDtd(
) → Future< XmlDoctype?> -
Attempts to load the external DTD file from externalDtdUri and
parse the DTD elements contained within. A new
XmlDoctype
will be returned with the parsed DTD elements in the externalDtd value. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFormattedString(
{int nestingLevel = 0, String indent = '\t', bool encodeCharacterEntities = true, String? encodeCharacters, bool doubleQuotes = true}) → String -
Returns this node as a formatted string.
override
-
toString(
{bool encodeCharacterEntities = true, String? encodeCharacters, bool doubleQuotes = true}) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override
Static Methods
-
from(
String string, {bool parseCharacterEntities = true, bool parseComments = false, bool trimWhitespace = true, bool parseCdataAsText = true}) → XmlDoctype? -
Returns the first XML DocType declaration found in
string
.string
must not benull
.override -
parseString(
String string, {bool parseCharacterEntities = true, bool parseComments = false, bool trimWhitespace = true, bool parseCdataAsText = true, int start = 0, int? stop}) → List< XmlDoctype> ? -
Returns a list of every XML DocType declaration found in
string
.string
must not benull
.override