Processing instructions

It is sometimes necessary for an XML document to contain instructions aimed at a particular software application, or at any application that needs to perform a specific process on the document. A processing instruction contains document-specific information, and is bounded by the characters '<?' and '?>':

<? ..... ?>

SGML Note

the '?' at the end is required.

The content begins with a keyword, significant to an application that will understand the instruction. This is followed by a space, then the instruction itself. The instruction may include any valid XML characters:

<?keyword instruction?>

The syntax used for the instruction is assumed to be significant only to the target application. In the example below, a Paragraph ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.