type

XPi

@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

new make(Str target, Str val)

Construct a processing instruction with specified target and val.

nodeType

virtual override XNodeType nodeType()

Return the XNodeType.pi.

target

Str target

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

toStr

virtual override Str toStr()

Return string representation of this processing instruction.

val

Str val

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

write

virtual override Void write(OutStream out)

Write this node to the output stream.