The XSD's that we register (which does not contain namespaces) are obtained from an identical XSD that contains a namespace (by deleting the namespace) The XSD's with namespaces are required since its used in WSDL files. This leads duplication of XSD's i.e we need to maintain 2 sets of XSD's (one with and one without namespace).
Will Oracle allow us to register an XSD that has a namespace with the command (register schema command) and then validate instance XML by ignoring the namespace?
XSD without namespace:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://ift.tt/tphNwY">
<!-- Element Declarations -->
<xs:element name="S_NO" type="S_NOType">
<xs:annotation>
<xs:documentation>S_Number</xs:documentation>
</xs:annotation>
</xs:element>
XSD with namespace:
<xs:schema xmlns:xs="http://ift.tt/tphNwY" xmlns="http://ift.tt/XOBFkr"
targetNamespace="http://ift.tt/XOBFkr">
<!-- Element Declarations -->
<xs:element name="S_NO" type="S_NOType">
<xs:annotation>
<xs:documentation>S_Number</xs:documentation>
</xs:annotation>
</xs:element>
Tiada ulasan:
Catat Ulasan