generateDS.py 1.10a
Sponsored Links
generateDS.py 1.10a Ranking & Summary
File size:
0.11 MB
Platform:
Any Platform
License:
MIT/X Consortium License
Price:
Downloads:
902
Date added:
2007-05-12
Publisher:
Dave Kuhlman
generateDS.py 1.10a description
generateDS.py 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.
It also generates parsers that load an XML document into those 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).
The generated subclass file contains one (sub-)class definition for each data representation class. If the subclass file is used, then the parser creates instances of the subclasses (instead of creating instances of the superclasses). This enables the user to extend the subclasses with "tree walk" methods, for example, that process the contents of the XML file. The user can also generate and extend multiple subclass files which use a single, common superclass file, thus implementing a number of different processes on the same XML document type.
This document explains (1) how to use generateDS.py; (2) how to use the Python code and data structures that it generates; and (3) how to modify the generated code for special purposes.
It also generates parsers that load an XML document into those 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).
The generated subclass file contains one (sub-)class definition for each data representation class. If the subclass file is used, then the parser creates instances of the subclasses (instead of creating instances of the superclasses). This enables the user to extend the subclasses with "tree walk" methods, for example, that process the contents of the XML file. The user can also generate and extend multiple subclass files which use a single, common superclass file, thus implementing a number of different processes on the same XML document type.
This document explains (1) how to use generateDS.py; (2) how to use the Python code and data structures that it generates; and (3) how to modify the generated code for special purposes.
generateDS.py 1.10a Screenshot
generateDS.py 1.10a Keywords
XML
XML Schema
XML schema document
Python data structures
generates Python data
Data Structures
for example
XML document
schema document
class definitions
generateDS.py
document
python
class
data
generated
Bookmark generateDS.py 1.10a
generateDS.py 1.10a Copyright
WareSeeker periodically updates pricing and software information of generateDS.py 1.10a full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of generateDS.py 1.10a Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
xml schema documentation
xml schema documents
python data structures and algorithms
java data structures
python data structures tree
data structures and algorithms
data structures in c++
xml schemas
data structures lectures
data structures algorithms analysis
types of data structures
data structures in c
sample xml schema document
xml schema tutorial
what is data structures
data structures in java
python exhaust
document shredding
Related Software
ETrace is a configurable static port network tracing tool, similar to traceroute, but supporting ICMP, TCP, UDP, etc. Free Download
LiveGraph is a project consisting of a real-time graph plotter. Free Download
NLQ.py is a quick and dirty (with an emphasis on both) python module that attempts to parse an incoming "Natural Language" query Free Download
Hydrate is a tool that provides fast, efficient, and error-free transformation of data. Free Download
Remote MySQL Query is a PHP class that can easily execute queries on a remote MySQL server using only HTTP. Free Download
Ini.py is a Python module/class that allows developers to utilize Windows .INI files quickly and easily. Free Download
Kugar is a KDE tool for generating business quality reports which can be viewed and printed. Free Download
Gtk2::Ex::DBI - Bind a Gtk2::GladeXML can generated window to a DBI data source. Free Download
Latest Software
Popular Software
Favourite Software