[XML-SIG] Converting XML Schema to data struture and then to XML

Good Z goodz158 at yahoo.com
Mon Jan 28 05:28:37 CET 2008


Thanks Stefan,

But my primary requirement is converting XML Schema.

Mike

----- Original Message ----
From: Stefan Behnel <stefan_ml at behnel.de>
To: Good Z <goodz158 at yahoo.com>
Cc: xml-sig at python.org
Sent: Sunday, January 27, 2008 8:24:36 PM
Subject: Re: [XML-SIG] Converting XML Schema to data struture and then to XML




Good Z wrote:
> I need to write an application to convert XML schema (.xsd) to a data
> structure then using this data structure and the data from some other
> files, generate an XML file.
> 
> I have seen generateDS and pyfo library that can be combined to write
 this
> application but my problem is that i somehow do not like DOM and
 would like
> to write this in ElementTree. I wonder if anyone can point me how to
 write
> this quickly in ElementTree or someone has already done this effort.

In case you can do without the schema, lxml.objectify might be worth a
 look:

http://codespeak.net/lxml/dev/objectify.html

Stefan






      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20080127/33fbfd0a/attachment.htm 


More information about the XML-SIG mailing list