[lxml-dev] XSD Validation
We're having some problems attempting to validate an XML file against an XSD schema. To summarize, lxml is complaining about whiteSpace and date validation, when as far as I can tell, the spec says its valid. Full context is on StackOverflow, don't want to throw everything into here, but after dealing with this for a couple days it feels like maybe theres an issue w/ the validation layer in lxml. http://stackoverflow.com/questions/4631897/datetime-complaining-about-whites... Per the spec, whiteSpace is collapse by default which should remove all indentation space, yet lxml complains about the dateTime value not being valid. -- David Cramer
David Cramer, 10.01.2011 20:30:
We're having some problems attempting to validate an XML file against an XSD schema. To summarize, lxml is complaining about whiteSpace and date validation, when as far as I can tell, the spec says its valid.
Full context is on StackOverflow, don't want to throw everything into here, but after dealing with this for a couple days it feels like maybe theres an issue w/ the validation layer in lxml.
http://stackoverflow.com/questions/4631897/datetime-complaining-about-whites...
Per the spec, whiteSpace is collapse by default which should remove all indentation space, yet lxml complains about the dateTime value not being valid.
Have you tried validating the file directly with libxml2's xmllint? Stefan
participants (2)
-
David Cramer
-
Stefan Behnel