Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    JAXML 3.02

    Download button

    No screenshots available
    Downloads: 528  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    12 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Conseil Internet & Logiciels Libres | More programs
    GPL / FREE
    August 8th, 2010, 16:07 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    JAXML description

    Makes the automated generation of XML, XHTML or HTML documents easy

    JAXML is a Python module which makes the automated generation of XML, XHTML or HTML documents easy.

    This module is part of the official Debian GNU/Linux distribution.

    If we believe our logs, it seems to be used internally by companies and universities worldwide : Boeing , Philips , Sanofi , and many others... Please tell us if you use it.

    Documents generated with JAXML are still easily human readable.

    Here are two samples of automated XML document generation, the first one with the classical file objects, the second one using JAXML:

    # --- Classical Version
    fp = open("sample.xml", "w")
    fp.write('< ?xml version="1.0" encoding="iso-8859-1"? >n')
    fp.write('< sometag someattr="1" >n')
    fp.write(' < anothertag jaxml="Nice" >n')
    fp.write(' < thirdone >Yo< /thirdone >n')
    fp.write(' < /anothertag >n')
    fp.write('< /sometag >n')
    fp.close()

    # an equivalent version using JAXML
    import jaxml
    doc = jaxml.XML_document()
    doc.sometag(someattr=1).anothertag(jaxml="Nice")
    doc.thirdone("Yo")
    doc._output("sample.xml")

    # Both produce the same output
    < ?xml version="1.0" encoding="iso-8859-1"? >
    < sometag someattr="1" >
    < anothertag jaxml="Nice" >
    < thirdone >Yo< /thirdone >
    < /anothertag >
    < /sometag >


    As you may see above, JAXML takes care of the most annoying things for you :

    - closing tags

    - indentation to maintain human readability

    But more than that JAXML gives you some interesting possibilities :

    - full support of xml namespaces since version 3.0

    - a base class which takes care of all sorts of tagged documents

    - add or multiply documents

    - output to file objects, strings, file names

    - special constructs or shortcuts dedicated to HTML or CGI output

    - Two different templating facilities

    - And many more...


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Python module | generate XML documents | generate XHTML documents | XML | XHTML | HTML

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM