PPRS 2000 manual

PPRS 2000 manual


XML file templates

  • Zip file containing following xml templates
    • Fldgas_full.xml: full return for dry gas fields – reporting unit yype G, table 3
    • Fldgas_partial.xml: partial return for dry gas fields – reporting unit type G, table 3
    • Fldoil_full.xml: full return for oil fields exporting to pipeline – reporting unit type P, table 1
    • Fldtkl_full.xml: full return for onshore oil fields or offshore tanker loaders – reporting unit type T, table 2
    • Fldtkl_partial.xml: partial return for onshore oil fields or offshore tanker loaders – reporting unit type T, table 2
    • Trmoil_full.xml: full return for oil pipeline terminals – reporting unit type O, table 4
    • Trmoil_partial.xml: partial return for oil pipeline terminals – reporting unit type O, table 4
    • Trmdgas_full.xml: full return for dry gas terminals – reporting unit type D, table 6
    • Trmdgas_partial.xml: partial return for dry gas terminals – reporting unit type D, table 6
    • Trmagas_full.xml: full return for associated gas terminals – reporting unit type A, table 5
    • Trmagas_partial.xml: partial return for associated gas terminals – reporting unit type A, table 5

Document type definition (DTD) files

Xml stylesheet files

Tips for using xml

Item Subject Description
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="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.:
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.



Link to home page