There is a new version of generateDS.py -- version 2.33.0

The significant change in this version is that generated modules now
capture the name space prefix of each element during parse/build.
Then during export, that prefix is used.  Hopefully this will more
correctly create exported XML files.

My tests show that some exported XML files now validate against the
XML schema, whereas they did not with the previous version of
generateDS.

I've tested it reasonably thoroughly.  But, it is a significant
change, so you should do some testing of your own.

There are more notes in the read-me.  See below.

You can find it here:

- Python Package Index -- http://pypi.python.org/pypi/generateDS/
- Bitbucket -- For those of you who prefer using Mercurial, there is
  also a Mercurial repository at Bitbucket:
  https://bitbucket.org/dkuhlman/generateds
- Source Forge -- http://sourceforge.net/projects/generateds/

If you have comments, suggestions, or problems, please send them
along.  The email list is here:
https://lists.sourceforge.net/lists/listinfo/generateds-users

Dave

From the README:

# =========================================================

Version 2.33.0 (06/28/2019)

- Added feature -- Capture the prefix of each element on input
  (during build), then use that during export.  There is an API to
  get and set the name space and prefix in instances of the
  generated classes: ``get_ns_prefix_``, ``set_ns_prefix_``,
  and for members (``XXX_nsprefix_``).

- Added feature -- Before export, the ``parse`` function scans the
  lxml XML element tree and creates all needed NS prefix definitions
  for export at the top level.  There is also a function (which is
  called by ``parse``) that collects all the name space prefixes and
  their definitions (URIs).

- Fix -- Added ``.encode('utf-8')`` for generation of Enum classes
  in order to prevent an exception when running under Python 2.

- Added programming language classifiers (Python 2 and 3) to
  ``setup.py``.  Thanks to Mustafa Şenol Coşar for this suggestion.

# =========================================================

-- 

Dave Kuhlman
http://www.davekuhlman.org


_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to