[XML-SIG] ANN: Anobind 0.5.0

Uche Ogbuji uche.ogbuji at fourthought.com
Sat Aug 2 05:44:50 EDT 2003


http://uche.ogbuji.net/tech/4Suite/anobind
 
Anobind is a Python/XML data binding, which is just a fancy way of
saying it's a very Pythonic XML API.
 
You feed Anobind an XML document and it returns a data structure of
corresponding Python objects.  For example, the document
 
<monty>
  <python spam="eggs">What do you mean "bleh"</python>
  <python ministry="abuse">But I was looking for argument</python>
</monty>
 
Would become a set of objects so that you could write
 
binding.monty.python.spam

In order to get the value "eggs" or
                                                                                binding.monty.python[1].text_content()

In order to get the value "But I was looking for argument".

There are other such tools for Python, and what makes Anobind unique is
that it's driven by a very declarative rules-based system for binding
XML to the Python data.  One can register rules that are triggered by
XPatterns or plain Python code in order to register specialized binding
behavior.

It also offers XPath support and some support for round-tripping
documents.

Anobind is open source, provided under the 4Suite variant of the Apache
license.  It requires Python 2.2.2 and 4Suite 1.0a3.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
XML Data Bindings in Python, Part 2 - http://www.xml.com/pub/a/2003/07/02/py-xml.html
Introducing Examplotron - http://www-106.ibm.com/developerworks/xml/library/x-xmptron/
Charming Jython - http://www-106.ibm.com/developerworks/java/library/j-jython.html
Python, Web services, and XSLT - http://www-106.ibm.com/developerworks/xml/library/ws-pyth13/
A custom-fit career in app development - http://www.adtmag.com/article.asp?id=7744




More information about the XML-SIG mailing list