XMLSchema Parsing

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

    #1

    XMLSchema Parsing

    Hi all,
    i'd like to know if there are any good XMLSchema (.xsd files) parsing modules in python.
    regards,
    KM

  • Dennis Benzinger

    #2
    Re: XMLSchema Parsing

    km schrieb:[color=blue]
    > Hi all,
    > i'd like to know if there are any good XMLSchema (.xsd files) parsing modules in python.
    > regards,
    > KM
    >[/color]


    Try lxml <http://codespeak.net/lxml/> a pythonic binding for the libxml2
    and libxslt libraries.


    Bye,
    Dennis

    Comment

    • Tim N. van der Leeuw

      #3
      Re: XMLSchema Parsing

      Hi,

      Depends entirely on what you want. I've written some XSD tools in
      Python that do exactly what I want -- but don't offer support for any
      XSD features that I didn't happen to need.
      Module I wrote supports include/import and redefine; parses sequences,
      complexTypes and simpleTypes, but not much more.

      I also have some tool that generates basic XSD files from sample input
      xmls, and a tool that generates sample xml files from an XSD.

      I'm not aware of any Python XSD tooling but did you search google on
      it?

      How much of XSD do you need to be supported? And what do you need to do
      with it?

      cheers,

      --Tim

      Comment

      • uche.ogbuji@gmail.com

        #4
        Re: XMLSchema Parsing

        km wrote:[color=blue]
        > i'd like to know if there are any good XMLSchema (.xsd files) parsing modules in python.
        > regards,[/color]

        Parse and do what? You can parse WXS (a.k.a. XSD) with any XML parser
        out there.

        Anyway, off-head, Python tools that handle WXS, to some extent:

        xsv
        libxml2/Python
        lxml
        generateDS.py

        Good luck.

        --
        Uche Ogbuji Fourthought, Inc.
        http://uche.ogbuji.net http://fourthought.com
        http://copia.ogbuji.net http://4Suite.org
        Articles: http://uche.ogbuji.net/tech/publications/

        Comment

        Working...