[EDI-L Mailing List Archive Home] [Message List] [Reply To This Message]

Re: XML Hierarchy Question

From: "William J. Kammerer" <wkammerer@...>
Date: Wed Jan 26, 2005  11:30 pm
Subject: Re: [EDI-L] XML Hierarchy Question
Great question! Generally, hierarchy is good, as Messrs. Wertheimer,
Johnson and Chessman acclaim. But in this case, I kind of feel that
the "detail" should be at the same level as the "header," if I'm
understanding you correctly. In good ol' soon-to-be-sunsetted Trad*EDI,
this is true: Table 1 (the header) is considered to be at the same
"level" as Table 2 (the detail). The PO1 loop in the 850 PO is
(implicitly) nested at the same level as typical header information
like the N1 Buyer loop.

The same is true in UBL. Typical header information, which applies
across the business document, consists of stuff like BuyerParty,
SellerParty, Delivery (Instructions) and DeliveryTerms. These
"elements" reside at the second highest level, right under the Order
document root element itself. The OrderLines, which we think of as the
"detail," are repeated one after another at the same level as the header
information. Of course, stuff pertaining to the line item, like Quantity
and Item (Description), are nested within a single LineItem within the
OrderLine. The UBL Office supplies Order example instance at
http://docs.oasis-open.org/ubl/cd-UBL-1.0/ shows this explicitly.

William J. Kammerer
Novannet, LLC.
Columbus, OH 43221-3859 . USA
+1 (614) 487-0320

----- Original Message -----
From: < To: < Sent: Wednesday, 26 January, 2005 01:34 PM
Subject: [EDI-L] XML Hierarchy Question



To all:

Along the lines of the XML discussions, I was wondering what the group
thought.....

Should you build an XML document with an implied hierarchy (i.e. detail
must be a child of header) or should you build it flat (i.e. detail and
header at the same level? Why would one method be better than the
other?

> Sincerely,
> __________________________________________________
> "Its not how much you know, but rather how fast
you learn, and how open you are to new ideas."
- Michael Dell 'Direct From Dell'
> _______________________________________________
> MATTHEW P. KILEY ยง
> DELL INCORPORATED
> B2B Online Team - Invoicing Integration Manager
> Work: (512) 723 - 5261
Cell: (512) 779 - 5721





 
EDI to XML Mapping for EDIFACT/X12 Convert EDIFACT/X12 Schemas to XML Schema Legacy Data Conversion Tools Access Relational Data as XML Visual XSLT and XQuery Mapping Tools Simplify EDI Data Integration with Stylus Studio XML Enterprise Suite - Free Download!
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.