The ProcessingInstruction Class
The ProcessingInstruction class represents an XML processing instruction, such as <?xml-stylesheet href="book.xsl" type="application/xml"?> or <?php mysql_connect("database.unc.edu", "debra", "secret"); ?>. Each processing instruction has a target string, which must be a legal XML name; a value string, which may not contain the end-delimiter ?>; and a parent element, which may be null if the instruction is a child of a Document instead of an Element.
Note
At the time of this writing, JDOM only checks processing instruction targets for well-formedness. It does not check processing instruction data. However, checking data for the presence of illegal characters is on the TODO list.
Because so many processing instructions ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access