#include <Pt/Xml/ProcessingInstruction.h>
A processing instruction of an XML document. More...
Inherits Node.
Public Member Functions | |
ProcessingInstruction () | |
Constructs an empty ProcessingInstruction. | |
void | clear () |
Clears all content. | |
const String & | data () const |
Returns the data for the processing instruction. | |
String & | data () |
Returns the data for the processing instruction. | |
void | setData (const String &data) |
Sets the data for the processing instruction. | |
void | setTarget (const String &target) |
Sets the target for the processing instruction. | |
const String & | target () const |
Returns the target for the processing instruction. | |
String & | target () |
Returns the target for the processing instruction. | |
Type | type () const |
Returns the type of the node. | |
Related Functions | |
ProcessingInstruction * | toProcessingInstruction (Node *node) |
Casts a generic node to a ProcessingInstruction node. | |
const ProcessingInstruction * | toProcessingInstruction (const Node *node) |
Casts a generic node to a ProcessingInstruction node. | |
ProcessingInstruction & | toProcessingInstruction (Node &node) |
Casts a generic node to a ProcessingInstruction node. | |
const ProcessingInstruction & | toProcessingInstruction (const Node &node) |
Casts a generic node to a ProcessingInstruction node. | |
Processing instruction are used to add instructions to an XML document to support specific XML processing software. The data of a processing instruction has no particular format and can contain plain text or XML-like attribute/value-associations.