Monika Schubert
Monika Schubert

Reputation: 51

Parsing XML schema java

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>`

Upvotes: 0

Views: 1644

Answers (1)

kundan bora
kundan bora

Reputation: 3889

you can use JDOM or DOM4j-

here are the link -

http://www.jdom.org/

http://dom4j.sourceforge.net/

Upvotes: 0

Related Questions