Validate XML against a set of XSD files, with Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laszlo Nagy

    Validate XML against a set of XSD files, with Python

    Do you know an open source lib that can do $subject?

    Thanks,

    Laszlo

  • Sébastien Boisgérault

    #2
    Re: Validate XML against a set of XSD files, with Python


    Laszlo Nagy wrote:
    Do you know an open source lib that can do $subject?
    Fast google query, uncheked, leads to:

    - XSV: http://www.ltg.ed.ac.uk/~ht/xsv-status.html
    - libxml : http://codespeak.net/lxml/

    Cheers,

    SB

    Comment

    • Laszlo Nagy

      #3
      Re: Validate XML against a set of XSD files, with Python

      Fast google query, uncheked, leads to:
      >
      - XSV: http://www.ltg.ed.ac.uk/~ht/xsv-status.html
      >
      I tried this before. Unfortunately, xsv is not officially supported on
      my system (FreeBSD 6.1) :-(Probably this is what I need to use. (However, I see in the mailing
      lists that there are problems with this part of libxml2.)

      Thank you,

      Laszlo



      Comment

      • Sébastien Boisgérault

        #4
        Re: Validate XML against a set of XSD files, with Python


        On Dec 13, 2:28 pm, Laszlo Nagy <gand...@design aproduct.bizwro te:
        Fast google query, uncheked, leads to:
        >
        - XSV:http://www.ltg.ed.ac.uk/~ht/xsv-status.htmlI tried this before. Unfortunately, xsv is not officially supported on
        my system (FreeBSD 6.1) :-( - libxml :http://codespeak.net/lxml/Probably this is what I need to use. (However, I see in the mailing
        lists that there are problems with this part of libxml2.)
        Yep, maybe. I suspect some issues with the validation of Relax NG
        documents,
        at least with the libxml2 that was used in my lxml build ...
        Thank you,
        >
        Laszlo

        Comment

        • Stefan Behnel

          #5
          Re: Validate XML against a set of XSD files, with Python

          Laszlo Nagy wrote:
          > - libxml : http://codespeak.net/lxml/
          >>
          Probably this is what I need to use. (However, I see in the mailing
          lists that there are problems with this part of libxml2.)
          XML Schema support in libxml2 is not complete. It should work in most cases,
          but I've already stumbled into schemas that just don't work (especially
          generated ones).

          RelaxNG support in libxml2 is pretty much perfect, BTW.

          Stefan

          Comment

          • =?iso-8859-1?q?S=E9bastien_Boisg=E9rault?=

            #6
            Re: Validate XML against a set of XSD files, with Python


            Stefan Behnel wrote:
            RelaxNG support in libxml2 is pretty much perfect, BTW.
            The *potential* issue I mentioned before with Relax NG
            validation in libxml2 does *NOT* exist.

            I double-checked with Jing and my RelaxNG file was
            indeed incorrect ... (the "recursive reference outside
            elements" kind of mistake). Jing more detailled
            error reports helped ...

            Mea Maxima Culpa. Wouldn't like to spread FUD :)

            Cheers

            SB

            Comment

            Working...