Giter Site home page Giter Site logo

sassoftware / xobj Goto Github PK

View Code? Open in Web Editor NEW
1.0 11.0 3.0 3.77 MB

Python module providing an XML object reflector

License: Apache License 2.0

JavaScript 12.05% CSS 0.12% ActionScript 59.48% Shell 0.39% Python 25.06% Makefile 1.08% HTML 1.82%

xobj's Introduction

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.

xobj's People

Contributors

elliotpeele avatar mtharp avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.