Convert XML to CSV using SAX Python

hade

New Member
I have a XML file which has huge data size.The XML file is containing\[code\]<us-bibliographic-data-grant><publication-reference><document-id><country>US</country><doc-number>D0607176</doc-number><kind>S1</kind><date>20100105</date></document-id></publication-reference><applicants><applicant sequence="001" app-type="applicant-inventor" designation="us-only"><addressbook><last-name>Peters</last-name><first-name>Brian Jeffery</first-name><address><street>7052 Moonlight Cir.</street><city>Huntington Beach</city><state>CA</state><postcode>92647</postcode><country>US</country></address></addressbook>\[/code\]How can I get output like this
\[code\]last-name,first-name,street,city,state,postcode,countrypeters,brian jeffery, 7052 moonlight cir.,huntington beach,CA,92647\[/code\]I have no experiences at all on XML, please help
 
Back
Top