I need to be able to unmarshall data from an XML file into (instances of)
appropriate Python classes . I don't have control over the schema used.
I'd like the Python classes to use lists for elements whose XMLSchema spec
has maxOccurs > 1, simple attributes for maxOccurs = minOccurs = 1, dict
for element attributes, etc.
In the past I've just used SAX and hand-written the parsing - a
straightforward, fairly mechanical task. In short, perfect for a tool.
I've poked a little through the PyXML collection but don't really see what I
want (although I could be missing it). Does someone know of a tool to do
this kind of thing? Perhaps taking an XMLSchema with a cleverly written
XSLT script to do the transform?
Or am I making this harder than it has to be?
Thanks for any pointers,
Russell.