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. |
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 |
(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 "?>
".
oratext* getData() const;
(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 ProcessingInstruction
s must have a target, though the data part is optional.
oratext* getTarget() const;
(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.
void setData( oratext* data) throw (DOMException);
Parameter | Description |
---|---|
data |
new data |
This is the default destructor.
~ProcessingInstructionRef();