- From: "Abbey, Ting (Budget Office)" <TAbbey@i...>
- To: xml-dev@l...
- Date: Thu, 10 May 2007 14:49:16 -0500
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]
|