Creating XSDSchema from DOM Element [message #573962] |
Mon, 07 July 2003 18:22 |
Eclipse User |
|
|
|
Originally posted by: cipher8000.yahoo.com
Hi,
I am looking for a way to create the XSDSchema from an DOM Element. For
example:
Here is my schema would look like:
<definitions name="FlowSample" targetNamespace="http://samples.cxdn.com"
xmlns:tns="http://samples.cxdn.com"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:s1="http://www.autoloan.com/ns/autoloan"
>
<types>
<schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://www.autoloan.com/ns/autoloan"
xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="LoanApplication">
<sequence>
<element name="SSN" type="string"/>
<element name="Email" type="string"/>
<element name="CustomerName" type="string"/>
<element name="LoanAmount" type="double"/>
<element name="CarModel" type="string"/>
<element name="CarYear" type="string"/>
<element name="CreditRating" type="int"/>
</sequence>
</complexType>
</schema>
</types>
....
</definitions>
I use WSDL4J's Types to extract the <schema> DOM Element and now i want to
construct
XSDSchema from that DOM Element.
Is there any util API for constructing XSDSchema from an Element?
-Muruga
|
|
|
Powered by
FUDForum. Page generated in 0.02545 seconds