XML : Python parse xml file

I need to parse an xml file which method would be best for my case. beautifulsoup4, ElementTree, etc. it's a pretty big file. I have windows 10 64bit running python 2.7.11 32bit

xml file: http://pastebin.com/jTDRwCZr

I'm trying to get this output from the xml file it contains different languages using " div xml:lang="English" " for english.

  <tt xmlns="http://www.w3.org/2006/04/ttaf1"     xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling">  <head>  <styling>     <style id="1"  tts:textOutline='#000000 2px 2px'  tts:color="white"/>  </styling>  </head>  <body>  <div xml:lang="English">  ...  ...  </div>    

No comments:

Post a Comment