Softpedia
 

MAC CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • AppCleaner 2.2
  • Reason 7.0.1 Build 3510
  • Apple iTunes 11.0.3
  • CrossOver Mac 12.2.1 Bu...
  • Skype 6.4.60.833
  • Mozilla Firefox 21.0 / ...
  • Skitch 2.5.2 Build 262792
  • Apple iMovie 9.0.9
  • Tunnelblick 3.2.9 / 3.3...
  • Sublime Text 2.0.1 Buil...
  • Home > Mac > Developer Tools
     Report malware

    generateDS 2.9a

    Download button

    Downloads: 1,273  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Size / OS:

    Binary Format:

    Last Updated:

    Category:
    Dave Kuhlman | More programs
    MIT License / FREE
    479 KB / Mac OS X
    Universal Binary Universal Binary
    February 22nd, 2013, 03:21 UTC [view history]
    Home / Developer Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    generateDS description

    Generate data structures from XML schema

    generateDS generates Python data structures (for example, class definitions) from an XML Schema document. These data structures represent the elements in an XML document described by the XML Schema.

    generateDS is also able to generate parsers that load an XML document in the data structures.

    In addition, a separate file containing subclasses (stubs) is optionally generated. The user can add methods to the subclasses in order to process the contents of an XML document.

    The generated Python code contains:
    · A class definition for each element defined in the XML Schema document.
    · A main and driver function that can be used to test the generated code.
    · A parser that will read an XML document which satisfies the XML Schema from which the parser was generated. The parser creates and populates a tree structure of instances of the generated Python classes.
    · Methods in each class to export the instance back out to XML (method export) and to export the instance to a literal representing the Python data structure (method exportLiteral).

    The generated classes contain the following:
    · A constructor method (__init__), with member variable initializers.
    · Methods with names 'getX' and 'setX' for each member variable 'X' or, if the member variable is defined with maxOccurs="unbounded", methods with names 'getX', 'setX', 'addX', and 'insertX'.
    · A "build" method that can be used to populate an instance of the class from a node in a minidom tree.
    · An "export" method that will write the instance (and any nested sub-instances) to a file object as XML text.
    · An "exportLiteral" method that will write the instance (and any nested sub-instances) to a file object as Python literals (text).

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Added support for exporting to an Lxml element tree.The element
    · tree can then be serialized to XML, e.g. using Lxml
    · etree.tostring().This innovation is by Logan Owen, who also did
    · most of the work on it (but I helped some, too).Note that this
    · work is not yet complete; it's still "work in progress"; but it
    · looks very promising.
    · Added --export command line option.This enables the user to
    · selectively generate export methods for any or all of normal
    · export, export to etree (lxml element tree), or export to literal
    · python code.This will enable users to reduce bulk in their
    · generated files when any or all of these are not needed.The
    · default is "write literal", i.e. the normal export methods that we
    · are used to.Use the --help command line option or read the doc
    · for a description of this option.
    · Fixed a bug that occurs when a schema has an attributeGroup
    · referenced with a name that includes a namespace prefix but the
    · attributeGroup is defined with a name that does *not* have the
    · namespace pr...

     Softpedia guarantees that generateDS 2.9a is 100% FREE, which means it does not contain any form of malware, including spyware, viruses, trojans and backdoors. [read more >]


    TAGS:

    data structure generator | generate data structure | generate parser | generate | generator | data sctructure

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM