OScript API/Built-in Package Index

Class: DOMProcessingInstruction

The DOMProcessingInstruction interface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document.

Instance Methods

Retrieves the content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>.

Retrieves the target of this processing instruction. XML defines this as being the first token following the markup that begins the processing instruction.

SetData( String data )

Sets the content of this processing instruction.

Instance Methods

GetData

String GetData()

Retrieves the content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>.

Returns:

The content of the this processing instruction.

GetTarget

String GetTarget()

Retrieves the target of this processing instruction. XML defines this as being the first token following the markup that begins the processing instruction.

Returns:

The target of this processing instruction.

SetData

Void SetData( String data )

Sets the content of this processing instruction.

Parameters

data

Sets the data from the first non white space character after the target to the character immediately preceding the ?>

Returns:

 Copyright © 2023 OpenText Corporation. All rights reserved.