Test XML and JSON Output
With eDocuments, it is possible to create custom XML and JSON files. For the XRechnung and ZUGFeRD formats, an additional Test Output function is available for XML validation. For JSON schemas, the Test JSON Output action generates a JSON file for testing and download.
Test XML Output
The following steps must be carried out to test the XML file:
- Open the eDocuments Schema list via the search bar.
- Select the desired eDocuments Schema.
- Click on the schema to open the detail view.
- Switch to the Data tab.
- Click on Test Output.
- Select a sample business document that you want to validate.
- Confirm by clicking OK.
XML Validation Result
After successful validation, the result is displayed along with an integrated XML Preview, allowing you to directly view the generated XML file.
The validation result shows:
- How many rules were checked,
- Whether the XML file is valid or invalid,
- Which rules may have failed (including rule ID and error message),
- How long the validation took.
Both the XML file and the validation result can then be exported via the Download tab.
Test JSON Output
The Test JSON Output action is available for schemas with the Schema Type set to JSON. The action generates a JSON file from the configured schema and exports it as Test.json. A valid eDocuments license is required to generate the JSON test output.
The following steps must be carried out to test the JSON file:
- Open the eDocuments Schema list via the search bar.
- Select a schema where Schema Type is set to JSON.
- Click on the schema to open the detail view.
- Click on Test JSON Output.
- Select a sample business document from the lookup.
- Confirm by clicking OK.
- The JSON file is generated and downloaded as Test.json.
Info
If the system cannot determine a related table for the selected JSON schema, no sample business document can be selected and the test output cannot be generated.