I tried to read and display a xml file with javascript. Normally easy, but this xml used attributes and it has me over the barrel. xml File on this site here http://www.codingforums.com/showthre...39#post1251639 So you can answer here or there.

The xml:
Code:
<catalogs>
	<catalog name="infibeam">
		<book>
			<title>cnds</title>
			<author>balagurusamy</author>
			<company>zseries</company>
			<country>america</country>
			<price>
			<mrp_price>150</mrp_price>
			<discount>15%</discount>
			</price>
		</book>

		<book>
			<title>java</title>
			<author>chandrasekhar</author>
			<company>qlines</company>
			<country>england</country>
			<price>
			<mrp_price>15</mrp_price>
			<discount>5%</discount>
			</price>
		</book>
		<book>
			<title>oracle</title>
			<author>somasekhar</author>
			<company>MAster</company>
			<country>australia</country>
			<price>
			<mrp_price>15</mrp_price>
			<discount>5%</discount>
			</price>
		</book>
	</catalog>

	<catalog name="flipcart">
		<book>
			<title>C.N</title>
			<author>varma</author>
			<company>Vseries</company>
			<country>india</country>
			<price>
			<mrp_price>150</mrp_price>
			<discount>15%</discount>
			</price>
		</book>
		<book>
			<title>C.G</title>
			<author>Eswar</author>
			<company>kseries</company>
			<country>india</country>
			<price>
			<mrp_price>200</mrp_price>
			<discount>10%</discount>
			</price>
		</book>
	</catalog>
</catalogs>
How is this read in javascript to place the title -- author under headings that separate the data under infibeam and flipcart the catalog attributes ?