The PBDOM_PROCESSINGINSTRUCTION class represents an XML processing instruction (PI). The PBDOM_PROCESSINGINSTRUCTION methods allow access to the processing instruction target and its data. The data can be accessed as a string or, where appropriate, as name/value pairs.
The actual processing instruction of a PI is a string. This
is so even if the instruction is cut up into separate name="value"
pairs.
PBDOM, however, does support such a PI format. If the PI data does
contain these pairs, as is commonly the case, then PBDOM_PROCESSINGINSTRUCTION
parses them into an internal list of name/value pairs.
In addition to the methods inherited from PBDOM_OBJECT, the PBDOM_PROCESSINGINSTRUCTION class has the following methods:
GetData and SetData to get and set the raw data of the PBDOM_PROCESSINGINSTRUCTION object
GetNames to get a list of names taken from the part of the PBDOM_PROCESSINGINSTRUCTION data that is separated into name="value" pairs
GetValue, RemoveValue, and SetValue to get, remove, and set the value of a specified name/value pair in the PBDOM_PROCESSINGINSTRUCTION object
GetTarget to
get the target of a PBDOM_PROCESSINGINSTRUCTION. For example,
the target of the XML declaration, which is a special processing
instruction, is the string xml
.