Eco Companion Australasia
Help
help | about | home | feedback | member services | browse | search | new | glossary | join

ANZMP guide to parser messages

This guide explains some of the messages that you may be presented with when your geospatial metadata documents are processed by the Australia New Zealand Metadata Parser (ANZMP).

ANZMP will retrieve your document, validate it against the ANZMETA Document Type Definition, and report any problems under the heading: 'Validate against DTD' errors. The parser is strict and any problems are comprehensively reported. It will also check the content of some fields in accordance with the ANZLIC Guidelines for Core Metadata Elements.

After ensuring that your metadata document looks like ANZMETA XML format the parser will read your file as a stream of sequential characters. When the parser encounters the pattern of an opening tag of an element, e.g. <origin>, it will run a process to validate this element's relationship to the structure specified by the DTD. Similar processes will run when it encounters the closing tag to ensure that all required children were present. At the close of some elements, the content is compared to the relevant authority list.

Four classes of error are reported by the parser:

Please report any parsing and validating problems that are not related to your specific metadata.

The document "About dataset descriptions" explains geospatial dataset descriptions. Here is an example XML file.


Example "Validation against DTD" errors:

When reading the error messages you will need to bear in mind that the parser is processing the flow of your document, character by character and line by line. It will report errors in the order that they are encountered. Occasionally you may need to look further down the list to find the real cause of an earlier error.

If you have used the W3C HTML Validation service, then you will recognise these error messages that come directly from the wonderful 'nsgmls' parser.

In each example error message below:
- the first number is the line number in the XML file
- the second number is the character number on that line
  • Missing required attribute
  • Entity end not allowed in end tag

    Pre-parser errors

    Some checks are carried out before ANZMP even sets off to work. Other errors include difficulties retrieving your XML file from the URL that you specified. Perhaps your metadata document does not have the required XML header. All of these errors are reported in a list at the top of the page. Simply correct the errors and submit the form again.


    Occasional fatal errors

    Sometimes the content of a field can cause the post-processor to die. These errors are at the document production and formatting stage of the process.


    URL:http://www.indexgeo.com.au/ec/help/anzmp-guide.html
    Last Modified: 11 April 2005