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 143: 2bb36bf913df
parent 141: 4f64a72036c7
parent 142: adef428c0bf2
child 144: afb024cb53ff
Merge rbo -> trunk defaultrba-5.2.2
Michael Tharp
8 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 316 B 9 months ago Added tag rba-5.2.1 for changeset 4a05f0f015c4
LICENSE 1.0 KB 15 months ago Initial set of makefiles for python
Make.defs 931 B 11 months ago prepare for release
Make.rules 2.4 KB 13 months ago use /usr/bin/python
Makefile 922 B 11 months ago prepare for release
NEWS 46 B 11 months ago prepare for release
README 1023 B 11 months ago prepare for release

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.