[ANNOUNCE] JAXML version 2.20

Jerome Alet alet at unice.fr
Wed Feb 21 07:16:45 EST 2001


I'm very pleased to announce you the new 2.20 version of the JAXML
module.

With the JAXML module, generating XML documents has never been easier,
this module:

        * Takes care of the indentation for you: your XML documents are
readable by humans.
        * Takes care of closing tags for you.
        * Can generate every tag you want in an incredibly easy way.
        * Offers two templating facilities (see below)
        * Can generate XHTML documents and be used in CGI scripts
because it
          takes care of the HTTP headers too.

Here's a sample:

--- CUT ---
import jaxml
x = jaxml.XML_document()
x.something(value=5).dummy("some dummy text", isntit="YES")
x['dummy'] = 'interesting' # new templating facility
print x

will produce:

<?xml version="1.0" encoding="iso-8859-1"?>
<something value="5">
    <interesting isntit="YES">some interesting text</interesting>
</something>

and

x._updatemapping({'dummy': 'boring'})
print x

will produce:

<?xml version="1.0" encoding="iso-8859-1"?>
<something value="5">
    <boring isntit="YES">some boring text</boring>
</something>
--- CUT ---

The JAXML module is GPLed, you can download it freely from:

        http://cortex.unice.fr/~jerome/jaxml/

Changes:

        * A new _updatemapping() method was added to initialise
          or update the internal mapping for the new templating
facility.
	  This mapping is only used when rendering the document.
        * An infinite loop bug which was triggered when you called dir()
          on an XML_document instance was corrected.
        * The basic '+' and '*' operators can now be used to concatenate
          or repeat documents. Nota Bene: this is not a real
concatenation,
	  the second document is inserted in the first one at the current
	  position.

The well commented test program and module's sources are your best
friends.

Comments are very welcome, and NO the licence won't be changed to other
than pure GPL, BUT we can discuss special agreements if you are really 
interested (this don't necessary mean money).

-- 
Jerome Alet - alet at unice.fr - http://cortex.unice.fr/~jerome



More information about the Python-list mailing list