wddx wrapper?

A.M. Kuchling A.M..Kuchling at p98.f112.n480.z2.fidonet.org
Sun Jul 4 14:19:20 EDT 1999


From: amk at mira.erols.com (A.M. Kuchling)

On Thu, 1 Jul 1999 16:19:25 -0400, Hank Fay <hank at prosysplus.com> wrote:
>Does anyone know a reference to a Python wrapper for wddx (www.wddx.org)?

There's a WDDX module in the current XML-SIG's CVS tree (not in the
released code).  It's in xml.marshal.wddx, and the interface is much
like the marshal module:

>>> from xml.marshal import wddx
>>> print wddx.dumps( ('tuple', 1, 3.5, wddx.TRUE) )
<?xml version="1.0"?><!DOCTYPE wddxPacket SYSTEM "wddx_0090.dtd">
<wddxPacket version="0.9">
  <array length="4">
    <string>tuple</string>
    <number>1</number>
    <number>3.5</number>
    <boolean value="true"/>
  </array>
</wddxPacket>

-- 
A.M. Kuchling			http://starship.python.net/crew/amk/
If there's another world, he lives in bliss; / If there is none, he made the
best of this.
    -- Robert Burns, "Epitaph on William Muir"




More information about the Python-list mailing list