[XML-SIG] parsing xml schema
Mariappan, MaharajanX
m_mariappanX@trillium.com
Thu, 22 Nov 2001 01:10:36 -0800
Hi,
-----Original Message-----
From: Martin v. Loewis [mailto:martin@v.loewis.de]
Sent: Thursday, November 22, 2001 1:47 PM
To: m_mariappanX@trillium.com
Cc: xml-sig@python.org
Subject: Re: [XML-SIG] parsing xml schema
> Is it possible to validate and parse a xml-schema file and get structured
> data in python objects?
Parsing it is no problem; any Python parser will do. Validating it is
currently not supported in PyXML; you may want to try XSV - see the
PyXML "other software" page for a reference.
I'll check it out XSV
> I would like to write a python class which have functions to get the
> structured data by parsing the xml-schema file. And pass this info to
> wxPython objects.
If you merely want to get the data, then I would suggest that
validation is not needed. In this case, I'd recommend to build a DOM
tree, e.g. using
tree = xml.dom.minidom.parse(resource)
and then either use DOM accessors or XPath to get the data.
Do you have sample entire code to have a look?
Regards,
Martin