Hello again,
Is it possible to use the schema processor in suds to convert between XML
representation and python object representation? I'm rather new to all this
XML schema stuff, so my apologies if I'm not asking the question the right
way.
I would like to do something like this:
p = Parser()
root = p.parse(url='file:xyz.xsd').root()
s = Schema(root, 'file:xyz.xsd', Options())
p2 = Parser()
data = p2.parse(url='http://somewhere/xyz.xml').root()
obj = unmarshall(data with respect to schema s)
I think (hope) I'm on the right track, but the suds library has a little
more Python magic in it than I'm used to, so if anyone has any tips, I'd
appreciate it.
I would also like to do the converse: convert a python object created by the
schema into it's XML representation.
Thank you for your time,
--Chris
Show replies by date