Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Combining elements in XDR

From: "Abbey, Ting (Budget Office)" <TAbbey@---.--.------.--.-->
To: xml-dev@-----.---.---
Date: 5/10/2007 7:49:00 PM
<span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi All,<o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'>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>.<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'>How do I go about
doing that in xdr? Or even if it is possible?<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'><root><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>           
<customer><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>                       
<id>123</id><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>                       
<name>smith</name><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>                       
<order partID=”j004” /><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>                       
<order partID=”j024” /><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>           
</customer><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'></root><o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'>TO SOMETHING LIKE THESE…..<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'><root><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>           
<customer><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>                       
<id>123</id><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>                       
<name>smith</name><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>                       
<partID>”j004 j024” <partID/><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>           
</customer><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'></root><o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'>I try the following in my xdr schema and it gives me error:
“missing element definition 'partID’”<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>   <ElementType
name="Customer"        
sql:relation="Customer"><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>      <element
type="id"             
sql:field="CustID" /><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>      <element
type="name"        
sql:field="CustName" /><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>      <element
type="partID"      
sql:field="PartID" /><o:p></o:p>

<span style='font-size:
10.0pt;font-family:Arial;color:navy'>   </ElementType><o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'>Thanks,<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'>TA<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent