This document type is used to export data directly in to a XML document from the DriveWorks project.
An XML (Extensible Markup Language) is a format commonly used for inter-operation between different systems.
DriveWorks can drive values into place-holders in an XML document.
In DriveWorks Administrator open the project the document is to be applied and go to Stage 4: Output Rules> Documents
If the Document Path is not set then the file will be created in the specification folder.
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="XMLDocumentTransform.xsl"?> <Document> <Field id="Field1">By DriveWorks</Field> <Field id="Field2">100mm</Field> </Document>
This XML document contains two tagged elements "Field1" and "Field2". These two tagged elements will appear in the Tagged Elements section when editing the XML document.
It is simple to add another tagged element by typing the following below the other tagged elements.
<Field id="Field3">Example Text</Field>
For any external application reading an XML file, the above is all that is required. If an XML file is to be displayed in a web browser, it will require a transform file to accompany the file. The transform file tells the browser how to display the XML.
XSL files must exist in the same location as the XML file it is used to display.
When requiring a XSL transform file to display a driven XML file, create a new document for output and use the Copied File option.
Select the XSL file to use and build a rule that will place it in the same location as the XML file being driven. Exactly the same procedure for any static image files used in the XML can be adopted.
The XML Document (Simple) is triggered in the specification flow by the Release Documents task.