| Home » Categories » Solutions by Business Process » E-Business » XML |
Input XML File Template Notes |
|
Article Number: 1840 | Rating: Unrated | Last Updated: Thu, Jun 22, 2023 at 4:48 PM
|
|
Datafile Software Input XML File Template Notes There are a few situations where it can be hard to write the template so that it processes incoming XML files unambiguously, and the following notes may help you solve these: Be careful with optional attributes that require different processing according to the attribute value. A typical example is an order response, where there may be (say) an Action="Add" or Action="Delete" attribute, or no Action attribute may be present at all. This technique is often used to indicate a product substitution. The "Delete" attribute may indicate a quantity (not necessarily the whole original quantity) of the product requested that cannot be supplied. The "Add" attribute may give the substituted product details, including the product code and the quantity of the new product to be supplied. The absence of the attribute indicates a normal response. An element group must be created for each possible attribute value, including the absence of an attribute value. Where the attribute value could be omitted, then put that element group before the others. There are occasions where an element group may have choices dependent on the value given for a child element. Typically this occurs with references, where a child element determines which reference value it concerns — such as an invoice number, delivery note number, or order number. Here you must again create an element group in the template for each possible value. In the parent element of each group add the attribute match="aaa", where aaa is the child element value that determines the processing of the element group. See above for more about the match attribute. When processing a reply against a detail file, that detail file must be prime-indexed — for example, sales and purchase order detail files. Where possible, make sure the prime index values are sent out with the originating XML file, and that the prime index values are returned with the reply. In the absence of the incoming prime index value, however, the XML processor will try to construct it from the master file index (e.g. order reference) and the line number of the original message. |
Attachments
There are no attachments for this article.
|
Use of XML Documents For Data
Viewed 1972 times since Tue, Jul 10, 2012
XML Background
Viewed 2090 times since Tue, Jul 10, 2012
Sales Ledger Accounts (SLA)
Viewed 4144 times since Tue, Jul 10, 2012
addto
Viewed 1982 times since Mon, Jul 9, 2012
Log File
Viewed 2169 times since Mon, Jul 9, 2012
XML Audit Trail Report
Viewed 1962 times since Thu, Jul 5, 2012
P/L XML CrNotes Input
Viewed 2013 times since Mon, Jul 9, 2012
Using Table Flags
Viewed 2211 times since Tue, Jul 10, 2012
Processing Commands
Viewed 2240 times since Mon, Jul 9, 2012
Send XML Acknowledgements, Send XML Delivery Notifications
Viewed 2157 times since Thu, Jul 5, 2012
|

