XML Processing Instruction
Processing instructions embed an application name and an instruction within
<? ?>
tags.
<?
appName { value
}?>
Conversion to Struct
To convert an XML processing instruction is converted to a Struct, use
xmlToStruct/full
. This converts it to a named Struct called appName, with the annotation xmlClass
set to
processing-instruction
. The Struct has one nameless scalar member.
When converted without the /full
switch, processing instructions are
ignored.
XML to Struct Conversion: Processing Instructions
XML code with element with embedded processing instruction:
<p><?xm-replace_text Enter text ?></p>
After conversion, string returned by $dbgString
[] [p] [$tags] [xmlClass] = element [xm-replace_text] = Enter text [$tags] [xmlClass] = processing-instruction