Re: validating XML

2012-06-14 Thread Dieter Maurer
andrea crotti writes: > ... > The reason is that it has to work on many platforms and without any c module > installed, the reason of that Searching for a pure Python solution, you might have a look at "PyXB". It has not been designed to validate XML instances against XML-Schema (but to map betw

Re: validating XML

2012-06-14 Thread andrea crotti
2012/6/13 Stefan Behnel > andrea crotti, 13.06.2012 12:06: > > Hello Python friends, I have to validate some xml files against some xsd > > schema files, but I can't use any cool library as libxml unfortunately. > > Any reason for that? Because the canonical answer to your question would be > lxm

Re: validating XML

2012-06-13 Thread Stefan Behnel
andrea crotti, 13.06.2012 12:06: > Hello Python friends, I have to validate some xml files against some xsd > schema files, but I can't use any cool library as libxml unfortunately. Any reason for that? Because the canonical answer to your question would be lxml, which uses libxml2. Stefan -- h

Re: validating XML

2012-06-13 Thread Dieter Maurer
andrea crotti writes: > Hello Python friends, I have to validate some xml files against some xsd > schema files, but I can't use any cool library as libxml unfortunately. Why? It seems not very rational to implement a complex task (such as XML-Schema validation) when there are ready solutions ar

Re: validating XML

2012-06-13 Thread andrea crotti
So as far as I understood what I should do is the following. Go through my own XML keeping track of the full path of everything for example and so on, then for every entry found in this iteration, check the schema to make sure that that particular construct is allowed on that level of the tree

validating XML

2012-06-13 Thread andrea crotti
Hello Python friends, I have to validate some xml files against some xsd schema files, but I can't use any cool library as libxml unfortunately. A Python-only validator might be also fine, but all the projects I've seen are partial or seem dead.. So since we define the schema ourselves, I was all

Re: Python base distribution come with a validating XML parser?

2008-07-25 Thread R�diger Werner
> Hi, > > Basic XML questions, > > I have a .xml file I want to validate against a .xsd file... > > Does the Python base distribution come with a validating XML parser? > > I want to make sure the elements in my xml file vs. the elements > defined in my xsd are a mat

Python base distribution come with a validating XML parser?

2008-07-25 Thread goldtech
Hi, Basic XML questions, I have a .xml file I want to validate against a .xsd file... Does the Python base distribution come with a validating XML parser? I want to make sure the elements in my xml file vs. the elements defined in my xsd are a match. I could parse both XML and xsd elements to

Re: Validating XML in Windows

2007-07-08 Thread numeralblue
On Jul 8, 10:01 am, Omari Norman <[EMAIL PROTECTED]> wrote: > My app needs to validate XML. That's easy enough in Unix. What is the > best way to do it in Windows? > > The most obvious choice would of course be PyXML. However, apparently it > is no longer maintained: > > http://sourceforge.net/proj

Re: Validating XML in Windows

2007-07-08 Thread bsneddon
On Jul 8, 12:22 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Omari Norman wrote: > > My app needs to validate XML. That's easy enough in Unix. What is the > > best way to do it in Windows? > > > The most obvious choice would of course be PyXML. However, apparently it > > is no longer maintained:

Re: Validating XML in Windows

2007-07-08 Thread Stefan Behnel
Omari Norman wrote: > My app needs to validate XML. That's easy enough in Unix. What is the > best way to do it in Windows? > > The most obvious choice would of course be PyXML. However, apparently it > is no longer maintained: > > http://sourceforge.net/project/showfiles.php?group_id=6473 > > s

Validating XML in Windows

2007-07-08 Thread Omari Norman
My app needs to validate XML. That's easy enough in Unix. What is the best way to do it in Windows? The most obvious choice would of course be PyXML. However, apparently it is no longer maintained: http://sourceforge.net/project/showfiles.php?group_id=6473 so there are no Windows binaries that w

Re: Recommended validating XML parser?

2007-05-07 Thread Stefan Behnel
Kirk Strauser wrote: > We're looking for a current, supported, validating XML parser. Since it > seems like there are a few thousand out there, I though we'd see what > everyone else is using. You are asking for lxml, right? http://codespeak.net/lxml/ > Bonus points

Recommended validating XML parser?

2007-05-07 Thread Kirk Strauser
We're looking for a current, supported, validating XML parser. Since it seems like there are a few thousand out there, I though we'd see what everyone else is using. Bonus points if it can do something like: >>> foo = XMLParser("""

Re: Validating XML parsers

2005-09-20 Thread Dale Strickland-Clark
Robert Kern wrote: > Dale Strickland-Clark wrote: >> A few days ago there was a discussion about which XML parser to use with >> Python. >> However, the discussion didn't cover validating parsers, at least, not >> w3.org XML Schemas. >> >> I looked into all the parsers that came up in the discuss

Re: Validating XML parsers

2005-09-19 Thread Robert Kern
Dale Strickland-Clark wrote: > A few days ago there was a discussion about which XML parser to use with > Python. > However, the discussion didn't cover validating parsers, at least, not > w3.org XML Schemas. > > I looked into all the parsers that came up in the discussion but found no > mention o

Validating XML parsers

2005-09-19 Thread Dale Strickland-Clark
A few days ago there was a discussion about which XML parser to use with Python. However, the discussion didn't cover validating parsers, at least, not w3.org XML Schemas. I looked into all the parsers that came up in the discussion but found no mention of w3.org schemas. It seems there are a few