type

XPi

src @Js
class XPi : XNode

XML processing instruction node.

constructors

make

Construct a processing instruction with specified target and val.

fields

target

Target name for the processing instruction.

val

String value of processing instruction.

methods

nodeType

Return the XNodeType.pi.

toStr

Return string representation of this processing instruction.

write

Write this node to the output stream.

Slot Details

make

src new make(Str target, Str val)

Construct a processing instruction with specified target and val.

nodeType

src virtual override XNodeType nodeType()

Return the XNodeType.pi.

target

src Str target

Target name for the processing instruction. It must be a valid XML name production.

toStr

src virtual override Str toStr()

Return string representation of this processing instruction.

val

src Str val

String value of processing instruction. This value must not contain the "?>".

write

src virtual override Void write(OutStream out)

Write this node to the output stream.