Processing Instructions

A processing instruction (PI) is an instruction for the application that's processing the XML document. So far, you've have seen only one:

  <?xml version="1.0" ?>

This informs the processor that the file is to conform to xml version 1.0 standards.

The general syntax for a processing instruction is as follows:

<?PIname ValueOrInstruction ?>

Examples of other PIs include instructions on how to render image files. Very few are actually implemented, so if you're interested in additional PIs in the draft document, you should visit http://www.w3.org.

Get Sams Teach Yourself XML in 24 Hours 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.