ive got a xml file like this:
<?xml version="1.0"?>
<orders>
<customer>
<order_num>6656</order_num>
<name>jon doe</name>
<street>123 fake st</street>
<city>Beverly Hills</city>
<state>CA</state>
<zip>90210</zip>
</customer>
<customer>
<order_num>1337</order_num>
<name>bob johnson</name>
<street>1232 something ave</street>
<city>Petaluma</city>
<state>CA</state>
<zip>94952</zip>
</customer>
<customer>
<order_num>5643</order_num>
<name>bill story</name>
<street>1st ave</street>
<city>Beverly Hills</city>
<state>CA</state>
<zip>90212</zip>
</customer>
<customer>
<order_num>4533</order_num>
<name>tom hutchinson</name>
<street>214 5th st</street>
<city>San Francisco</city>
<state>CA</state>
<zip>94109</zip>
</customer>
</orders>
i need to make a program that lists customers and there info:
1)from a specific city
2) customers in a range of zip[ codes
questions like that
all without posting the xml tags
im at a loss on the easiest way to do this.
im assuming no one will do it for me
(if thats not the case please pm me any code you think can help :))
but if you could point me in the right direction on how to acomplish it that would be great
one person i talked to mentioned read the file as strings and tokenize the data is this a good way to do it? or is there some better way i should reasearch?
thanks