Given a WSDL/XSD, what's the easiest way to produce a list of all simple & complex Types? (Java preferred.)
i.e.
<xsd:element name="ThirdPartyProductInfo" type="typens:ThirdPartyProductInfo" minOccurs="0"/>
<xsd:element name="SalesRank" type="xsd:string" minOccurs="0"/>
<xsd:element name="BrowseList" type="typens:BrowseNodeArray" minOccurs="0"/>
I'd expect the output to be:
ThirdPartyProductInfo, BrowseNodeArray, + all types referred to by the above as well.
Regexp's would probably miss a few cases, perhaps JDOM? SAX? Other?
Thanks.