Home : Tutorials : XML Tutorial


logo.gif (8216 bytes)
 

Processing Instructions


Processing Instructions are information for the application. PI's allow documents to contain instructions for applications. They are not really of interest to the XML parser. Instead, the instructions are passed to the application using the parser, because the purpose of processing instructions is to represent special instructions for the application.

Like comments, they are not textually part of the XML document.

All processing instructions, including the XML declaration, begin with <? and end with ?>. Following the initial <?, you will find the name of the processing instruction. The PI begins with the PITarget  used to identify the application to which the instruction is directed.

<?name pidata?>

<?xml version="1.0"? encoding="UTF-8" standalone="yes"?>

Version Declaration is a form of PI.

A particular document may have processing instructions for several different applications, so the processing instruction target (PITarget), right after the opening <?, identifies the target application for this processing instruction.


back.gif (1145 bytes)fwd.gif (1149 bytes)

 


Home : Tutorials : XML Tutorial

 

Copyright© 1998-2004 All Rights Reserved. No portion of this site may be reproduced or redistributed without prior written permission from VistaEdge Technologies

All registered trademarks appearing on this site are the property of their respective owners. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries. This site is not connected to Sun Microsystems, Inc. and is not sponsored by Sun Microsystems, Inc.