问题
I need to parse XML schema (source can be wsdl file or xsd ) and extract all the complex types and their constituent elements with their types.. I have used JAXB (xjc)but it does not return me a list of all complexTypes . Which alternative (XSOM) should I use? I would prefer some built-in library in jdk6.
`
<element name="BankLoanProcessRequest">
<complexType>
<sequence>
<element name="ClientId" type="int"/>
<element name="LoanAmount" type="double"/>
</sequence>
</complexType>
</element>`
回答1:
you can use JDOM or DOM4j-
here are the link -
http://www.jdom.org/
http://dom4j.sourceforge.net/
来源:https://stackoverflow.com/questions/11408652/parsing-xml-schema-java