rpathsync / xobj (http://bitbucket.org/verveguy/xobj)

xobj XML Object Reflectors

Clone this repository (size: 3.5 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/rpathsync/xobj/
commit 156: a34f9d6de981
parent 155: 44a8283ea403
child 157: 24220c63f07c
Productization of XObj defaultxobj-1.0
Ben Rector
5 months ago

 NB: This is not the latest revision. For the latest view, go to tip.

View at rev
xobj /
filename size last modified message
as3  
py  
test  
.hgignore 262 B 15 months ago hg ignore generated as3 files
.hgtags 418 B 6 months ago Added tag rba-5.2.3 for changeset 03869cb7e411
LICENSE 1.0 KB 15 months ago Initial set of makefiles for python
Make.defs 931 B 5 months ago Productization of XObj
Make.rules 2.4 KB 13 months ago use /usr/bin/python
Makefile 922 B 11 months ago prepare for release
NEWS 45 B 5 months ago Productization of XObj
README 1.2 KB 5 months ago Productization of XObj

README

INTRODUCTION
============
This is an initial offering of the xobj interface.  It should not be 
considered a stable interface and may not be backwards compatiblei 
with future releases.

The xobj project provides object reflector interfaces between various
dynamic languages and XML.  Currently, Python and ActionScript 3
implementations are available.

These interfaces are intended to allow for concise code for using
and manipulating XML documents.  For example, using the ElementTree
Python library, you might write something like this:

    imageItem = [ x for x in parent if x.tag == 'image' ]

In this case, imageItem will always be a list, even if it is
not defined in the XML schema to be a sequence.

Using xobj, you could refer to the image element more directly:

    parent.image

That will be either a single item or a list, depending on the
context.

It is not required to provide an XML schema to use xobj.  Custom
objects may be used for parts or all of the document, whether or
not an XML schema is provided.  Schema validation is optional.
If new elements show up, they will be preserved across read/write;
schema additions will not normally require code changes.