XML Tutorials - Herong's Tutorial Examples - v5.25, by Herong Yang
The <?xml ...?> Processing Instruction
This section describes the 'xml' processing instruction, which is required at the top of XML files. 'xml' processing instruction must have the 'version' attribute.
Every XML file must contain one "xml" processing instruction at the beginning of the file to declare that this file is an XML file.
There is one required attribute for the "xml" processing instruction: version="n", indicating the version number of the XML standard.
Valid attributes of the "xml" processing instruction are:
Here is an example XML file that has all 3 attributes included in the "xml" processing instruction:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <p>Hello world!</p>
In this tutorial book, we will be learning XML version 1.0 first. XML version 1.1 tutorials are added at the end.
Table of Contents
Introduction of XML (eXtensible Markup Language)
Types of Information in XML Files
►The <?xml ...?> Processing Instruction
dictionary.xml - A Simple XML Sample File
DOM (Document Object Model) Programming Interface
SAX (Simple API for XML) Programming Interface
DTD (Document Type Definition) Introduction
Validating an XML Document against the Specified DTD Document Type
XSD (XML Schema Definition) Introduction
Validating XML Documents Against Specified XML Schemas
XSL (Extensible Stylesheet Language) Introduction
XSLT (XSL Transformations) Introduction
XSLT Elements as Programming Statements
Control and Generate XML Element in the Result
PHP Extensions for XML Manipulation
Processing XML with Python Scripts
XML Tools Plugin for Notepad++
XML Plugin Packages for Atom Editor