xsd, data binding. Modern approach?

Discussion in 'Python' started by Vladimir Kropylev, Feb 29, 2008.

  1. Hi,

    What is the most actual approach to python XML data-binding?
    The answers given by google seam to be rather outdated. Can't believe
    nothing's changed since 2003.

    To be concrete, i've faced the following task:
    I HAVE:
    - XSD schema (a huge collection of *.xsd files)
    TODO:
    - create python classes corresponding to the given schema
    - create, serialize/deserialize (to/from XML) python objects of these
    classes (according to the given schema)

    Thanks! :)
     
    Vladimir Kropylev, Feb 29, 2008
    #1
    1. Advertising

  2. Vladimir Kropylev wrote:
    > What is the most actual approach to python XML data-binding?
    > The answers given by google seam to be rather outdated. Can't believe
    > nothing's changed since 2003.
    >
    > To be concrete, i've faced the following task:
    > I HAVE:
    > - XSD schema (a huge collection of *.xsd files)
    > TODO:
    > - create python classes corresponding to the given schema
    > - create, serialize/deserialize (to/from XML) python objects of these
    > classes (according to the given schema)


    If you don't insist on generating code, lxml.objectify might do what you want.

    http://codespeak.net/lxml/objectify.html
    http://codespeak.net/lxml/objectify.html#asserting-a-schema

    Stefan
     
    Stefan Behnel, Feb 29, 2008
    #2
    1. Advertising

  3. Vladimir Kropylev wrote:
    > Hi,
    >
    > What is the most actual approach to python XML data-binding?
    > The answers given by google seam to be rather outdated. Can't believe
    > nothing's changed since 2003.
    >
    > To be concrete, i've faced the following task:
    > I HAVE:
    > - XSD schema (a huge collection of *.xsd files)
    > TODO:
    > - create python classes corresponding to the given schema
    > - create, serialize/deserialize (to/from XML) python objects of these
    > classes (according to the given schema)
    >


    http://www.rexx.com/~dkuhlman/generateDS.html
     
    Pierre Sangouard, Feb 29, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Boris Kolpackov
    Replies:
    0
    Views:
    425
    Boris Kolpackov
    May 16, 2006
  2. Simon Morgan
    Replies:
    18
    Views:
    1,290
    Tim Rentsch
    Jul 24, 2005
  3. Scott W
    Replies:
    14
    Views:
    753
    I.M. !Knuth
    Jul 18, 2006
  4. Boris Kolpackov
    Replies:
    0
    Views:
    422
    Boris Kolpackov
    May 10, 2006
  5. Boris Kolpackov
    Replies:
    0
    Views:
    590
    Boris Kolpackov
    Mar 20, 2007
Loading...

Share This Page