Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   XMLSchema Parsing (http://www.velocityreviews.com/forums/t351952-xmlschema-parsing.html)

Dennis Benzinger 11-29-2005 09:35 AM

Re: XMLSchema Parsing
 
km schrieb:
> Hi all,
> i'd like to know if there are any good XMLSchema (.xsd files) parsing modules in python.
> regards,
> KM
>



Try lxml <http://codespeak.net/lxml/> a pythonic binding for the libxml2
and libxslt libraries.


Bye,
Dennis

Tim N. van der Leeuw 11-29-2005 09:40 AM

Re: XMLSchema Parsing
 
Hi,

Depends entirely on what you want. I've written some XSD tools in
Python that do exactly what I want -- but don't offer support for any
XSD features that I didn't happen to need.
Module I wrote supports include/import and redefine; parses sequences,
complexTypes and simpleTypes, but not much more.

I also have some tool that generates basic XSD files from sample input
xmls, and a tool that generates sample xml files from an XSD.

I'm not aware of any Python XSD tooling but did you search google on
it?

How much of XSD do you need to be supported? And what do you need to do
with it?

cheers,

--Tim


km 11-29-2005 05:31 PM

XMLSchema Parsing
 
Hi all,
i'd like to know if there are any good XMLSchema (.xsd files) parsing modules in python.
regards,
KM


uche.ogbuji@gmail.com 11-29-2005 08:45 PM

Re: XMLSchema Parsing
 
km wrote:
> i'd like to know if there are any good XMLSchema (.xsd files) parsing modules in python.
> regards,


Parse and do what? You can parse WXS (a.k.a. XSD) with any XML parser
out there.

Anyway, off-head, Python tools that handle WXS, to some extent:

xsv
libxml2/Python
lxml
generateDS.py

Good luck.

--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://fourthought.com
http://copia.ogbuji.net http://4Suite.org
Articles: http://uche.ogbuji.net/tech/publications/



All times are GMT. The time now is 01:18 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.