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: <[EMAIL PROTECTED]>
To: <[email protected]>
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




.  
Please use the following Message Identifiers as your subject prefix: <SALES>, 
<JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC>
Access the list online at:  http://groups.yahoo.com/group/EDI-L
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/EDI-L/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to