Home » Categories » Solutions by Business Process » E-Business » XML

Template Wizard

Datafile Software

Template Wizard


The template wizard allows you to pick any or all of the data items from the targeted database. If you reply "Y” to the question Default output/input all data items? then the full set of data items in the file is displayed in a matrix on the screen, as shown below. If you reply "N”, then you can select the items in the order you want them used.

Note that you can use the [F4-Select] button or key to view the file contents and select the appropriate data items.

There are three prompts at the bottom of this screen:
Name to use for Database (root) element [DATABASE ]
Name to use for Record (child) element [RECORD ]
Specify own names for data elements [ ]

You can specify the names to use for the root element and its child element to match that required. By ticking the "…data elements” box, you are given the chance to enter your own element names for each of the data items chosen — this occurs after you’ve accepted the item definitions. Each item is highlighted with the data item name given in the database structure, and you can change this to another name of your choice.

Note

Element names in XML are limited to the character set of letters (A–Z, a–z), numbers (0–9), and the punctuation characters hyphen, underscore and period. An element name can start only with letters or the underscore. The names you enter are checked to ensure that they do not contain disallowed characters, and that you have not duplicated any element name in the structure. We recommend that you go through the process of specifying your own names even though you plan to stick to the database names, just to check that the names are all valid for XML. Note too that element names entered here can be a maximum of 20 characters in length. Should you require longer element names, you’ll need to edit the template with a text-processor after it is created.

When you’ve finished this process, the XML template is then created and displayed. Future plans include an editing process here, but for the moment it is merely displayed, and you can {Escape] to exit the definition process.

You should then save the template, and save the XML definition itself.

If you need to edit the template, use a text processor such as Notepad or WordPad.
Custom Fields
  • Release ID: Standard
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
key
Viewed 1503 times since Mon, Jul 9, 2012
Maintain XML Lookup Files
Viewed 1655 times since Thu, Jul 5, 2012
save
Viewed 1548 times since Mon, Jul 9, 2012
Constants File
Viewed 1703 times since Mon, Jul 9, 2012
Integrating XML Processes
Viewed 3808 times since Tue, Jul 10, 2012
Output XML Orders
Viewed 4155 times since Mon, Jul 9, 2012
Send XML Acknowledgements, Send XML Delivery Notifications
Viewed 1698 times since Thu, Jul 5, 2012
Database Issues
Viewed 1498 times since Mon, Jul 9, 2012
Log File
Viewed 1756 times since Mon, Jul 9, 2012
restore
Viewed 1639 times since Mon, Jul 9, 2012