PlantWise Help

Standard XML Reports

PlantWise reports can be used to generate XML files. This manual does not document XML functionality, rather how PlantWise generates an XML file.

The Report Editor

For the most part, the Report Editor is visually the same for XML reports as for other standard reports. However, there are some functionality differences:
  • output is not totaled;
  • output is not filtered;
  • shown report titles are inserted into the report as an XML comment;
    • report titles that are surrounded by triangular brackets (< >) are included but not commented out of the report output;
    • showing the report title is not required.

Report Editor with Output in XML selected

If you select Output in XML, two new fields open below the Component Expression field:
  • XML Report Object – acts as the top level designator for the report and is not required.
  • XML Row Object – acts as the row designator for each entry in the report.
Tip: As with many other PlantWise objects, the XML Report Object and XML Row Object cannot contain spaces or other invalid characters.

Standard XML Report Output

Sample output from the above XML report could be as shown below:

Following the outlining format of XML, the XML report output from PlantWise is as follows:

XML Version
Open Comment
	PlantWise comment
Close Comment
Commented PlantWise report title
XML Report Object
	XML Row Object
		Row Data
	XML Row Object
XML Report Object

If you have chosen to not use a report object, the output format will be:

XML Version
Open Comment
	PlantWise comment
Close Comment
Commented PlantWise report title

	XML Row Object
		Row Data
	XML Row Object

With the first occurrence of the XML Report Object, the report is opened. Each row entry will be opened and then closed with the XML Row Object before the report is closed with the second occurrence of the XML Report Object.