xsd2xpath Code
Create xPath for each element in an XML Schema
Status: Beta
Brought to you by:
royjtaylor
| File | Date | Author | Commit |
|---|---|---|---|
| branches | 2013-01-01 | allura | [r1] Initial commit |
| tags | 2013-01-01 | allura | [r1] Initial commit |
| trunk | 2013-01-01 | allura | [r1] Initial commit |
| .project | 2013-02-10 | royjtaylor | [r6] |
| README | 2013-02-10 | royjtaylor | [r4] |
| xsd2xpath.pl | 2013-02-10 | royjtaylor | [r5] Updated to list enumerations used in a schema w... |
xsd2xpath perl script to create analyse an XML schema and produces four files as output: - .xpath.csv: lists the xpath of each element or attribute in the schema with supporting info - .choice: lists the xpath of nodes that are XML xs:choices and the choice - .repeat: list of repeating nodes in a schema - .enumeration.csv: list of simple types and enumerated values .xpath.csv contents - element / attribute flag - name - parent name - data type: a ~ separated list of user defined data types - XML Data Type: base xml schema data - Constraints, XML Schema constraints defined for the attribute/element. Eg. length, pattern, etc - Max length: maximum length of the element, and for numbers, number of decimal places if defined - CDS Type: specific to the type of schema initially being analysed, usually value "n/a" - xPath: xPath of the element - Cardinality: xPath of the element with cardinality of nodes embedded Usage: perl xsd2xpath.pl <xml schema file name> Development Environment: - Windows 7 - ActivePerl v5.14 with XML::LibXML module There shouldn't be any Windows specific code, so should run unchanged on Unix / Linux