ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-sig
xml-sig
[XML-SIG] Status of pyxml development
by Nicolas Delaby other posts by this author
Oct 21 2009 10:06AM messages near this date
[XML-SIG] New xml_marshaller | Re: [XML-SIG] Status of pyxml development
& XSLT Hi all,
I would like to know what is the status of pyxml ? I saw on sourceforge
that it is no longer maintained but i want to have a confirmation.

So i'm using a interesting module of the pyxml library: the Marshaller.
I played a bit with and find some weakness like non support of namespaces.

I reimplemented it with lxml (may be its a troll in this mailing-list,
sorry in advance) with full support of namespaces.

How can i contribute ? do i need to fork this code ?
Do you have suggestions ?

Regards,
Nicolas

*Here the output of the test with defautl behaviour:*
Testing XML marshalling...
<marshal> <none/></marshal>
<marshal> <int>1</int></marshal>
<marshal> <long>10633823966279326983230456482242756608</long></marshal>
<marshal> <float>19.72</float></marshal>
<marshal> <complex>1.0 5.0</complex></marshal>
<marshal> <string>here is a string &amp;amp; a &amp;lt;fake
tag&amp;gt;</string> </marshal>
<marshal> <tuple><int>1</int><int>2</int><int>3</int></tuple></marshal>
<marshal> <list
id="i2"> <string>alpha</string><string>beta</string><string>gamma</string></list></marshal>
<marshal> <dictionary
id="i2"> <int>1</int><int>2</int><string>key</string><string>value</string></dictionary></mar
shal> 
<marshal> <object id="i2" module="__main__"
class="_A"> <tuple/><dictionary id="i3"><string>self</string><reference
id="i2"/> <string>subobject</string><object id="i4" module="__main__"
class="_B"> <tuple/><dictionary id="i5"><string>list</string><list
id="i6"> <none/><int>1</int><long>10633823966279326983230456482242756608</long><float>19.72</
float> <complex>1.0
5.0</complex> <string>here is a string &amp;amp; a &amp;lt;fake
tag&amp;gt;</string> </list></dictionary></object></dictionary></object></marshal>
<marshal> <list
id="i2"> <none/><int>1</int><long>10301051460877537453973547267843</long><dictionary
id="i3"> <int>1</int><string>spam</string><int>2</int><string>eggs</string></dictionary><stri
ng> &amp;lt;fake
tag&amp;gt;</string> <complex>1.0 5.0</complex><reference
id="i2"/> </list></marshal>
<marshal> <object id="i2" module="__main__"
class="_A"> <tuple/><dictionary id="i3"><string>self</string><reference
id="i2"/> <string>subobject</string><object id="i4" module="__main__"
class="_B"> <tuple/><dictionary id="i5"><string>list</string><list
id="i6"> <none/><int>1</int><long>10633823966279326983230456482242756608</long><float>19.72</
float> <complex>1.0
5.0</complex> <string>here is a string &amp;amp; a &amp;lt;fake
tag&amp;gt;</string> </list></dictionary></object></dictionary></object></marshal>

*Here the output of the test with namespace support:*
m = Marshaller(namespace_uri='http://www.erp5.org/namespaces/marshaller')
dumps = m.dumps

Testing XML marshalling...
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:none/></marshal:marshal>
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:int>1</marshal:int></mars
hal:marshal> 
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:long>10633823966279326983
230456482242756608</marshal:long> </marshal:marshal>
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:float>19.72</marshal:floa
t> </marshal:marshal>
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:complex>1.0
5.0</marshal:complex> </marshal:marshal>
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:string>here
is a string &amp;amp; a &amp;lt;fake
tag&amp;gt;</marshal:string> </marshal:marshal>
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:tuple><marshal:int>1</mar
shal:int> <marshal:int>2</marshal:int><marshal:int>3</marshal:int></marshal:tuple></marshal:m
arshal> 
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:list
id="i2"> <marshal:string>alpha</marshal:string><marshal:string>beta</marshal:string><marshal:
string> gamma</marshal:string></marshal:list></marshal:marshal>
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:dictionary
id="i2"> <marshal:int>1</marshal:int><marshal:int>2</marshal:int><marshal:string>key</marshal
:string> <marshal:string>value</marshal:string></marshal:dictionary></marshal:marshal>
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:object
id="i2" module="__main__" class="_A"> <marshal:tuple/><marshal:dictionary
id="i3"> <marshal:string>self</marshal:string><marshal:reference
id="i2"/> <marshal:string>subobject</marshal:string><marshal:object
id="i4" module="__main__" class="_B"> <marshal:tuple/><marshal:dictionary
id="i5"> <marshal:string>list</marshal:string><marshal:list
id="i6"> <marshal:none/><marshal:int>1</marshal:int><marshal:long>106338239662793269832304564
82242756608</marshal:long> <marshal:float>19.72</marshal:float><marshal:complex>1.0
5.0</marshal:complex> <marshal:string>here is a string &amp;amp; a
&amp;lt;fake
tag&amp;gt;</marshal:string> </marshal:list></marshal:dictionary></marshal:object></marshal:d
ictionary> </marshal:object></marshal:marshal>
<marshal:marshal
xmlns:marshal="http://www.erp5.org/namespaces/marshaller"> <marshal:list
id="i2"> <marshal:none/><marshal:int>1</marshal:int><marshal:long>103010514608775374539735472
67843</marshal:long> <marshal:dictionary
id="i3"> <marshal:int>1</marshal:int><marshal:string>spam</marshal:string><marshal:int>2</mar
shal:int> <marshal:string>eggs</marshal:string></marshal:dictionary><marshal:string>&amp;lt;f
ake
tag&amp;gt;</marshal:string> <marshal:complex>1.0
5.0</marshal:complex> <marshal:reference
id="i2"/> </marshal:list></marshal:marshal>

-- 
Nicolas Delaby
Nexedi: Consulting and Development of Libre / Open Source Software
http://www.nexedi.com/
_______________________________________________
XML-SIG maillist  -  XML-SIG@[...].org
http://mail.python.org/mailman/listinfo/xml-sig
Thread:
Nicolas Delaby
Stefan Behnel
Mike Brown
martin
Mike Brown
martin
Nicolas Delaby

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved