Skip Headers
Oracle® Database XML C++ API Reference
11g Release 1 (11.1)

B28389-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

ProcessingInstructionRef Interface

Table 2-23 summarizes the methods available through ProcessingInstructionRef interface.

Table 2-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();