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

Good Z goodz158 at yahoo.com
Mon Jan 28 11:34:55 CET 2008

Ok. My requirement is as follows:
We have a third party PDF form with following input and output supplied by the vendor and used as below:
Input:Raw data that needs to be filled in ADOBE form through keyboard.
Output: Once the form is filled, the form has a buttons to generate XML file for the data and save it on harddisk. 

There are many thousand users of this form and based on the input different xml are generated. They have also provided us schema so that we can generate XML and verify the XML against that. 

Our software is accepting input from the web and thus has all data. We would like to generate the XML tree structure using schema and then use the data values entered by the user and then generate XML file. 

----- Original Message ----
From: Stefan Behnel <stefan_ml at behnel.de>
To: Good Z <goodz158 at yahoo.com>
Cc: xml-sig at python.org
Sent: Monday, January 28, 2008 2:50:20 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
>>> structure then using this data structure and the data from some
>>> files, generate an XML file.
>>> I have seen generateDS and pyfo library that can be combined to
>>  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
>>>  write
>>> this quickly in ElementTree or someone has already done this
> In case you can do without the schema, lxml.objectify might be worth
>  look:
> http://codespeak.net/lxml/dev/objectify.html
> Thanks Stefan,
> But my primary requirement is converting XML Schema.

Sure, no problem. But may I ask what the reasoning behind this
 requirement is?
I mean, code generation isn't really a value by itself.


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/20080128/3b1d8f79/attachment-0001.htm 

More information about the XML-SIG mailing list