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 added to and go to Stage 4: Output Rules then Documents - Files
Please see Info: Where To Store DriveWorks Data for information on where to store the data associated to a DriveWorks implementation.
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.