| 1 |
Case sensitivity |
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. |
| 2 |
Case sensitivity |
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=http://webarchive.nationalarchives.gov.uk/20121217190832/https://og.decc.gov.uk/en/olgs/cms/tech_papers/pprs_2000/"PPRSfld.xsl"?> |
| 3 |
& symbol |
Don't use the '&' symbol anywhere in the return – it confuses the XML parser |
| 4 |
Decimal places |
Densities of Gas 3
Density of Oil 1
Density of Condensate 1
Calorific Values 2
Mass/ Volumes 0 |
| 5 |
Repeating groups |
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.:
<INDIVIDUAL_ETHANE_DISPOSAL_REPEATING_GROUP>
</INDIVIDUAL_ETHANE_DISPOSAL_REPEATING_GROUP> |
| 6 |
Nulls |
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.
|
| 7 |
Format |
Save text as a plain ASCII file, NOT a word document. If using Word to create file, save as *.txt. |
| 8 |
Format |
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. |
| 9 |
IE V.5 |
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. |
| 10 |
IE V4 |
Does not work with XML |
| 11 |
Format |
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. |
| 12 |
Format |
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. |