XmlProcessingInstruction class

An XML Processing Instruction.

XML Processing Instructions contain instructions for the application parsing the document.

See: https://www.w3.org/TR/xml/#sec-pi

Inheritance
Annotations
  • @immutable

Constructors

XmlProcessingInstruction({required String target, String? content})
An XML Processing Instruction.
const

Properties

content String?
The optional content of the processing instruction.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target String
Refers to the application or document type the processing instruction refers to.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFormattedString({int nestingLevel = 0, String indent = '\t'}) String
Returns this node as a formatted string.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object o) bool
The equality operator.
override

Static Methods

from(String string, {bool trimWhitespace = true}) XmlProcessingInstruction?
Returns the first XML Processing Instruction found in string. string must not be null.
override
parseString(String string, {bool trimWhitespace = true, int start = 0, int? stop}) List<XmlProcessingInstruction>?
Returns a list of every XmlProcessingInstruction found in string. string must not be null.
override