XML Processing

tutorial and example
tutorial and example

Processing instructions are used to pass parameters to an application. These parameters tell the application how to process the XML document.

Syntax

Here,

target– It identifies the application to which the instruction is directed.

instruction– It is a character that describes the information for the application to process.

Example

The following processing instruction tell the application that it should transform the XML document using XSL stylesheet tutorialandexample.xsl

Processing instruction begin with <? And end with?>.

Here, the target is xml-stylesheet.

href=”tutorialandexample.xsl” and type=”text/xsl” are data or instruction that the target application will use at the time of processing the given XML document.