Hi:
In my application , I need convert the XML stored as
org.w3c.dom.element to SDO Object;
The XMLHelper support a method which can load the Source to SDO
Document.
But if I using this method to load DOMSource as SDO, it cannot work
correctly. The result SDO's type is AnyType, and is not correct schema
registered in SDO type context;
But if I convert the DOM to string first, then load the string as
SDO, the result is correct. Although it work, but this way will waste
performance.
Why ?
Does any know how to using TUSCANY SDO to convert DOMSource as sdo ?
Following is a sample xml
<xs:element name="st1E" type="ns:ST1"/>
<xs:complexType name="ST1">
<xs:sequence>
<xs:element name="a1" type="xs:string"/>
</xs:sequence>
</xs:complexType>
The xml is :
<st1E xmlns="http://test/sometype">
<a1>test</a1>
</st1E>