ProcessingInstruction Class Reference

#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 Stringdata () const
 Returns the data for the processing instruction.
 
Stringdata ()
 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 Stringtarget () const
 Returns the target for the processing instruction.
 
Stringtarget ()
 Returns the target for the processing instruction.
 
Type type () const
 Returns the type of the node.
 

Related Functions

ProcessingInstructiontoProcessingInstruction (Node *node)
 Casts a generic node to a ProcessingInstruction node.
 
const ProcessingInstructiontoProcessingInstruction (const Node *node)
 Casts a generic node to a ProcessingInstruction node.
 
ProcessingInstructiontoProcessingInstruction (Node &node)
 Casts a generic node to a ProcessingInstruction node.
 
const ProcessingInstructiontoProcessingInstruction (const Node &node)
 Casts a generic node to a ProcessingInstruction node.
 

Detailed Description

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.