XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Combining elements in XDR

Hi All,

 

I have the following xml data and would like to combine the element <order> into a single line and treat it as an element in the <customer>.

How do I go about doing that in xdr? Or even if it is possible?

 

<root>

            <customer>

                        <id>123</id>

                        <name>smith</name>

                        <order partID=”j004” />

                        <order partID=”j024” />

            </customer>

</root>

 

TO SOMETHING LIKE THESE…..

 

<root>

            <customer>

                        <id>123</id>

                        <name>smith</name>

                        <partID>”j004 j024” <partID/>

            </customer>

</root>

 

 

I try the following in my xdr schema and it gives me error: “missing element definition 'partID’”

 

   <ElementType name="Customer"         sql:relation="Customer">

      <element type="id"              sql:field="CustID" />

      <element type="name"         sql:field="CustName" />

      <element type="partID"       sql:field="PartID" />

   </ElementType>

 

 

Thanks,

TA

 

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS