<< Click to Display Table of Contents >> Checking for errors |
|
XML document is a technical document and as such must conform to very specific rules. If there is anything wrong, the document cannot be parsed by Libretto 2 software and no receipt printouts can be produced.
There are two simple ways to check that a receipt definition file is valid and functioning. First, if Libretto 2 logging is enabled, there will be a line in the libr2 log file that looks like this:
13:53:44.785 : PRT : 'ReceiptDefinition.xml' is ok
If there is an error in the receipt definition file, the error will be shown instead:
14:28:50.826 : PRT : Following errors found in 'ReceiptDefinition.xml'
14:28:50.827 : PRT : Name cannot begin with the '1' character, hexadecimal value 0x31. Line 287, position 13.
The error tells you where the problem is - this particular one means a missing ending quote just before the place where the problem is.
A second possibility is to open the receipt definition XML document in Internet Explorer. Internet Explorer has built-in support for validating the document, and will also show the error very clearly.