Hi, I'm using XML::Mini to parse and print the contents of an xml file.

The xml file has one root tag "<stocks>" and identcal children "<stock>" which 
has 2 attributes "id & name" and 6 children "<price> , <yearwk low=".." 
high="..."/>, "<bid> <offer> <vol>"

Since their can be any number of "<stock>" tags in the xml document at any one 
time, however, at all times, the stock tag will  have two attributes and 6 
children to go with it (preview attached).

Is their any flexible way to parse this xml file?.

-- 
Mathew McBride
[EMAIL PROTECTED]
<?xml version="1.0"?>

<stocks>
	<stock id="SMC" name="Some Company">
	<price>1.00</price>
	<yearwk high="1.00" low="1.00"/>
	<bid>1.05</bid>
	<offer>1.03</bid>
	<vol>1,000</vol>
	</stock>
	<stock id="SBC" name="Some Big Company">
	<price>1.50</price>
	<yearwk high="2.00" low="1.00"/>
	<bid>1.05</bid>
	<offer>1.03</bid>
	<vol>5,000</vol>
	</stock>
</stocks>
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to