TC
03-21-2000, 10:59 PM
Hi ALL
How do I combine attributes & tagnames
eg
I have an Invoice with attributes InvoiceNumber, InvoiceDate, it has items
with attributes itemname, & itemprice
Using Tags I could describe this as
<invoice>
<invoicenumber>
<invoicedate>
<items>
<item>
<itemname>
<itemprice>
</item>
</items>
</invoice>
How do you do this with attributes
eg
<invoice invoicenumber='12345' invoicedate='01/01/01' /> will describe the
invoice but it now has no children
This now has children
<invoice invoicenumber='12345' invoicedate='01/01/01'
<items>
<item itemname='myitem' itemprice='60.00 />
</items>
/>
BUT causes a error with the xml parser
How do I combine attributes & tagnames
eg
I have an Invoice with attributes InvoiceNumber, InvoiceDate, it has items
with attributes itemname, & itemprice
Using Tags I could describe this as
<invoice>
<invoicenumber>
<invoicedate>
<items>
<item>
<itemname>
<itemprice>
</item>
</items>
</invoice>
How do you do this with attributes
eg
<invoice invoicenumber='12345' invoicedate='01/01/01' /> will describe the
invoice but it now has no children
This now has children
<invoice invoicenumber='12345' invoicedate='01/01/01'
<items>
<item itemname='myitem' itemprice='60.00 />
</items>
/>
BUT causes a error with the xml parser