By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,097 Members | 1,529 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,097 IT Pros & Developers. It's quick & easy.

Any Python XML Data Binding Utilities Avaiable?

P: n/a
Hi, every one, happy new year!

I am working on XML with Python. I wonder if there is any XML Schema<->
Python Object mapping tools so that we can convert one to another.

Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a

I have heard about and played with pyRXP (from that
parses XML to pythonic objects. If you want a validating parser pyRXPu
(Unicode pyRXP, part of same distro) is recommended on xml forums.

There is another parser by Never tried it.

Also check out
1. for Python
XML recipes
2. - for
an XML to Object recipe.
3. - an
update to the above recipe by some other pythonista.

Item #2 above did not handle multiple occurances of elements well (or
may be it was me!), for example for multiple accounts in a download XML
config file I created, only got one account instance instead of 3.
Hope this helps.


Jul 18 '05 #2

P: n/a
Sounds like generateDS is closest to what you want:

If you can bind from instances only and don't need schema, see Amara

Also consider Gnosis Utilities and ElementTree.

Uche Ogbuji Fourthought, Inc.
Use CSS to display XML -
Full XML Indexes with Gnosis -
Be humble, not imperial (in design) - 1.0 -
Use Universal Feed Parser to tame RSS -
Default and error handling in XSLT lookup tables -
A survey of XML standards -
The State of Python-XML in 2004 -

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.