| Oracle® Database XML C++ API Reference 11g Release 1 (11.1) Part Number B28389-01 |
|
|
View PDF |
Table 2-23 summarizes the methods available through ProcessingInstructionRef interface.
Table 2-23 Summary of ProcessingInstructionRef Methods; Dom Package
| Function | Summary |
|---|---|
|
|
Constructor. |
|
|
Get processing instruction's data. |
|
|
Get processing instruction's target. |
|
|
Set processing instruction's data. |
|
|
Public default destructor. |
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
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
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
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 |
This is the default destructor.
Syntax
~ProcessingInstructionRef();