B
Brett Selleck
I would like to start collecting Metadata on my XML schemas. I have
searched the web for a method of automatically extracting Metadata
from an XSD file and have come up empty handed. Basically what I am
looking for is a VB Script or J Script that parses an XSD file and
outputs the metadata in a structured format. For examle: Given this
simple Schema below I would like to see the following.
Schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Book">
<xs:complexType>
<xs:all>
<xs:element ref="ISBN"/>
<xs:element ref="Title"/>
<xs:element name="Author" type="xs:string"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="Title" type="xs:string"/>
<xs:element name="ISBN" type="xs:long"/>
</xs:schema>
I would like to see this:
Element DataType IsGlobal Parent
ISBN long Y Book
Title string Y Book
Author string N Book
Book ComplexType Y Schema
Has anybody seen a tool that will do this? Or have a strategy on how
to extract this information?
Thanks,
searched the web for a method of automatically extracting Metadata
from an XSD file and have come up empty handed. Basically what I am
looking for is a VB Script or J Script that parses an XSD file and
outputs the metadata in a structured format. For examle: Given this
simple Schema below I would like to see the following.
Schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Book">
<xs:complexType>
<xs:all>
<xs:element ref="ISBN"/>
<xs:element ref="Title"/>
<xs:element name="Author" type="xs:string"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="Title" type="xs:string"/>
<xs:element name="ISBN" type="xs:long"/>
</xs:schema>
I would like to see this:
Element DataType IsGlobal Parent
ISBN long Y Book
Title string Y Book
Author string N Book
Book ComplexType Y Schema
Has anybody seen a tool that will do this? Or have a strategy on how
to extract this information?
Thanks,