XML Document Structure


9.0D

 

All XML documents should start with an XML declaration line containing the version of XML as shown below:

 

<?xml version="1.0"?>

 

Optionally the file may have an XML document type declaration. This must appear before the first XML element in the XML file. An XML document type declaration is prefixed by the following:

 

<!DOCTYPE .... >

 

The rest of the XML file is composed of the XML elements, XML comment lines, and XML processing instruction lines. XML comment lines are formatted as:

 

<!-- comment goes here -->

 

XML processing instruction lines are formatted as:

 

<?name text?>

 

 

See Also: XML Support



PL/B Language Reference XML Basics XFILE Support