Welcome to Gaia! ::

Since I'm really clueless about how I'd handle an XML table in Python, as I've never handled data such as it before.

Anything that could help me figure this stuff out would be appreciated.
Sitwon's avatar
  • 50
  • 100
  • 150
Well you basically have two routes you could go.

Document Object Model: http://docs.python.org/library/xml.dom.html
Simple API for XML: http://docs.python.org/library/xml.sax.html

The DOM presents an XML document as a tree structure that you can traverse, it's very similar to the DOM used so heavily in JavaScript.

SAX, on the other hand, doesn't store the whole tree, but walks through it from start to finish and fires off an event-handler for each parsed token.

You can find plenty of examples for each API using Google.

Quick Reply

Submit
Manage Your Items
Other Stuff
Get Items
Get Gaia Cash
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff