Skip Headers

Oracle® XML API Reference
10g Release 1 (10.1)
Part No. B10789-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents

Previous Next  

ProcessingInstructionRef Interface

Table 15-23 summarizes the methods of available through ProcessingInstructionRef interface.

Table 15-23 Summary of ProcessingInstructionRef Methods; Dom Package

Function Summary
ProcessingInstructionRef
Constructor.
getData
Get processing instruction's data.
getTarget
Get processing instruction's target.
setData
Set processing instruction's data.
~ProcessingInstructionRef
Public default destructor.


ProcessingInstructionRef

Class constructor.

Syntax Description
ProcessingInstructionRef(
   const NodeRef< Node>& node_ref,
   Node* nptr);
Used to create references to a given ProcessingInstruction node after a call to create ProcessingInstruction.
ProcessingInstructionRef(
   const ProcessingInstructionRef< Node>& nref);
Copy constructor.

Parameter Description
node_ref
reference to provide the context
nptr
referenced node


Returns

(ProcessingInstructionRef) Node reference object


getData

Returns the content (data) of a processing instruction (in the data encoding). The content is the part from the first non-whitespace character after the target until the ending "?>".


Syntax
oratext* getData() const;


Returns

(oratext*) processing instruction's data


getTarget

Returns a processing instruction's target string. The target is the first token following the markup that begins the ProcessingInstruction. All ProcessingInstructions must have a target, though the data part is optional.


Syntax
oratext* getTarget() const;


Returns

(oratext*) processing instruction's target


setData

Sets processing instruction's data (content), which must be in the data encoding. It is not permitted to set the data to NULL. The new data is not verified, converted, or checked.


Syntax
void setData( 
   oratext* data) 
throw (DOMException);

Parameter Description
data
new data


~ProcessingInstructionRef

This is the default destructor.


Syntax
~ProcessingInstructionRef();