Re: xsd, data binding. Modern approach?
Vladimir Kropylev wrote:
What is the most actual approach to python XML data-binding?
The answers given by google seam to be rather outdated. Can't believe
nothing's changed since 2003.
To be concrete, i've faced the following task:
I HAVE:
- XSD schema (a huge collection of *.xsd files)
TODO:
- create python classes corresponding to the given schema
- create, serialize/deserialize (to/from XML) python objects of these
classes (according to the given schema)
If you don't insist on generating code, lxml.objectify might do what you want.
http://codespeak.net/lxml/objectify.html
http://codespeak.net/lxml/objectify.html#asserting-a-schema
Stefan
.
Relevant Pages
- Re: Sort DataView according to Integer
... The type is string for sequenceNumber. ... then I 'read' the XSD schema and get no error. ... (microsoft.public.dotnet.framework.compactframework) - xsd and strongly typed xml passed to a webservice
... I'm using the Scott Short's Extended Schema Framework (an article about ... XmlNode parameter strongly typed in my wsdl. ... The following is the signature of my webmethod: ... association between the xsd schema and the webmethod input argument; ... (microsoft.public.dotnet.framework.aspnet.webservices) - xsd and strongly typed xml passed to a webservice
... I'm using the Scott Short's Extended Schema Framework (an article about ... The following is the signature of my webmethod: ... association between the xsd schema and the webmethod input argument; ... but I want to keep the current signature with the Xmlnode parameter. ... (microsoft.public.dotnet.languages.csharp) - xsd and strongly typed xml passed to a web service
... I'm using the Scott Short's Extended Schema Framework (an article about ... XmlNode parameter strongly typed in my wsdl. ... The following is the signature of my webmethod: ... association between the xsd schema and the webmethod input argument; ... (microsoft.public.dotnet.framework) - xsd and strongly typed xml passed to a webservice
... I'm using the Scott Short's Extended Schema Framework (an article about ... XmlNode parameter strongly typed in my wsdl. ... The following is the signature of my webmethod: ... association between the xsd schema and the webmethod input argument; ... (microsoft.public.dotnet.xml) |
|