| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| xsd2xpath.pl | 2013-02-10 | 30.0 kB | |
| README | 2013-02-10 | 1.2 kB | |
| Totals: 2 Items | 31.2 kB | 0 |
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