||XML has been found case sensitive. All the returns should be in UPPERCASE – both data and tags. The only exception is the first three header lines.
||Leave the top three header lines exactly the same as in the template, including the case, e.g.:
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="PPRSfld.xsl"?>
||Don't use the '&' symbol anywhere in the return – it confuses the XML parser
||Densities of Gas 3
Density of Oil 1
Density of Condensate 1
Calorific Values 2
Mass/ Volumes 0
||If you are not reporting any data in any one of the repeating group category only include the opening tag and closing tag – not any data tags within, e.g.:
In a full return all numeric data items must have a value or a zero – blanks are not allowed, therefore, a zero – not nulls – for numeric items.
||Save text as a plain ASCII file, NOT a word document. If using Word to create file, save as *.txt.
||Parse your xml file before you submit. This will check whether it is well formed. DECC recommends Microsoft XML Notepad, available free of charge from Microsoft.
||To view the XML file using Microsoft Internet Explorer V5, put the .xml (data file), DTD (document type definition) and .xsl (stylesheet) in the same directory and load the .xml file into the browser. The stylesheet will be applied and you will be able to view and print a formatted report of your xml data file. Any errors in your xml; file will be displayed in the browser.
||Does not work with XML
||Be careful not to include one or more blank lines at the top of the XML file .It confuses the XML parser and fails the return.
||XML notepad has a very useful function in validating the return file against the supplied DTD (Document Type Definition). A return may display perfectly well in IE5 with DTI supplied stylesheet(.xsl) but still have errors. Parsing the file in XML notepad will highlight these.