User Activity

  • Modified a comment on discussion Help on PyXB: Python XML Schema Bindings

    A couple comments: First, if you're not doing it already you probably should use the PyXB bundles for common and gml; otherwise it looks like you get six modules when you could be only generating bindings for the lido namespace: pyxbgen \ --archive-path='&pyxb/bundles/opengis//:&pyxb/bundles/common//' \ -u lido-v1.0.xsd -m lido Also, if you do this: try: root.append(child) except pyxb.ValidationError as e: print(e.details()) you get a little more detail about what's going on. Which is that you've...

  • Posted a comment on discussion Help on PyXB: Python XML Schema Bindings

    A couple comments: First, if you're not doing it already you probably should use the PyXB bundles for common and gml; otherwise it looks like you get six modules when you could be only generating bindings for the lido namespace: pyxbgen \ --archive-path='&pyxb/bundles/opengis//:&pyxb/bundles/common//' \ -u lido-v1.0.xsd -m lido Also, if you do this: try: root.append(child) except pyxb.ValidationError as e: print(e.details()) you get a little more detail about what's going on. Which is that you've...

  • Posted a comment on discussion Help on PyXB: Python XML Schema Bindings

    An example bundle showing how to use the modularized XHTML namespace has been added; see issue 81.

  • Posted a comment on discussion Help on PyXB: Python XML Schema Bindings

    See issue 82.

  • Posted a comment on discussion Help on PyXB: Python XML Schema Bindings

    Thanks; now tracked on github.

  • Posted a comment on discussion Help on PyXB: Python XML Schema Bindings

    Since that schema extends the content model of http://www.w3.org/1999/xhtml you would normally need to add this: --archive-path ${PYXB_ROOT}/pyxb/bundles/common// to your pyxbgen command line. This tells PyXB to import the content model metadata for the bundle that includes the xhtml namespace. The schema still won't generate bindings because it references a model group {http://www.w3.org/1999/xhtml}xhtml.BlkStruct.class that only exists in the modularized version of that namespace, which is not...

  • Posted a comment on discussion Help on PyXB: Python XML Schema Bindings

    If you delete the filler elements from within the sequence, the bindings module can be imported. sed -i -e /filler/d xml-mgmt.xsd

  • Posted a comment on discussion Help on PyXB: Python XML Schema Bindings

    No. The schema element at that point has minOccurs=0 maxOccurs=0 which means it doesn't exist. PyXB seems to remove it, which means the remaining reference to it while building the automaton fails. This is now filed as issue #79. I don't know when it will be worked.

View All

Personal Data

Username:
pabigot
Joined:
2000-09-02 13:35:52

Projects

Skills

  • No skills entered.

Personal Tools

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks