I'm working on a project to parse XSD files into Excel (2010) files to create some mapping documents. I'm just after the Name, Type, size/length and documentation elements. Trouble is, I can't seem to find where the annotation/documentation items are in the SOM (using MSXML6 library). It seems there's a writeAnnotation method, but not a corresponding fetch.
<xsd:element name="STCUST" minOccurs="0"><xsd:element name="STCUST" minOccurs="0">
<xsd:annotation><xsd:element minOccurs = "0" name = "STCUST">
<xsd:annotation>
<xsd:documentation>Ship to Customer - Identifier for the customer that will ultimately recieve this order.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base = "xsd:string">
<xsd:maxLength value = "20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:annotation></xsd:element></xsd:element>So out of the above segment I'd want to grab "STCUST string 20 Ship to Customer..." and plop them into a worksheet. No problem with the first three, but the annotation is eluding me as I've sifted through the various interfaces without much success.
Anyone know how to grab the documentation values out of an XSD doc?
<xsd:element name="STCUST" minOccurs="0"><xsd:element name="STCUST" minOccurs="0">
<xsd:annotation><xsd:element minOccurs = "0" name = "STCUST">
<xsd:annotation>
<xsd:documentation>Ship to Customer - Identifier for the customer that will ultimately recieve this order.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base = "xsd:string">
<xsd:maxLength value = "20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:annotation></xsd:element></xsd:element>So out of the above segment I'd want to grab "STCUST string 20 Ship to Customer..." and plop them into a worksheet. No problem with the first three, but the annotation is eluding me as I've sifted through the various interfaces without much success.
Anyone know how to grab the documentation values out of an XSD doc?