XML validationg against XSD file in Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • colincolehour@gmail.com

    #1

    XML validationg against XSD file in Python

    I have tried searching for tips or tutorials on validating an XML file
    against and XSD file in python but I haven't had any luck. Can someone
    point me in the right direction to how this would be achieved. I've
    read that Python has built in libraries for DTD validation but nothing
    about XSD.

    Thanks,
    Colin

  • Jarek Zgoda

    #2
    Re: XML validationg against XSD file in Python

    colincolehour@g mail.com napisa³(a):
    [color=blue]
    > I have tried searching for tips or tutorials on validating an XML file
    > against and XSD file in python but I haven't had any luck. Can someone
    > point me in the right direction to how this would be achieved. I've
    > read that Python has built in libraries for DTD validation but nothing
    > about XSD.[/color]

    lxml has support for schema-based validation.

    --
    Jarek Zgoda

    Comment

    Working...