June 2000
Intermediate to advanced
556 pages
8h 45m
English
In section 8.11.2, the pros and cons of event-driven XML processing were discussed. The section posed the question, How would you write a program to print invoices from the following document that has at least three item elements?
CD-ROM reference=12026.txt
<invoices>
<invoice>
<item name="shoes" cost="10.00"/>
<item name="socks" cost="1.00"/>
</invoice>
<invoice>
<item name="shoes" cost="10.00"/>
<item name="socks" cost="1.00"/>
</invoice>
<invoice>
<item name="shoes" cost="10.00"/>
<item name="socks" cost="1.00"/>
<item name="trousers" cost="100.00"/>
</invoice>
<invoice>
<item name="shoes" cost="10.00"/>
</invoice>
</invoices>
The Pyxie program below solves this problem with three different ...
Read now
Unlock full access