Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> dbms_xmlschema.registerSchema - invalid XML document
dbms_xmlschema.registerSchema() generates the error:
ERROR at line 1:
ORA-31154: invalid XML document ORA-19202: Error occurred in XML processing LSX-00147: "annotation" cannot contain "annotation" ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0 ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26 ORA-06512: at line 2
on the following XML Schema:
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
version="1.0">
<xsd:element name="CMSEND01">
<xsd:complexType> <xsd:sequence> <xsd:element name="DIRECT"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="1"> <xsd:annotation> </xsd:annotation> </xsd:enumeration> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType>
How to fix? (It also fails the same way with <xsd:documentation> populated inside the annotation)
Thanks.
-- Posted using the http://www.dbforumz.com interface, at author's request Articles individually checked for conformance to usenet standards Topic URL: http://www.dbforumz.com/Oracle-dbms_xmlschema.registerSchema-invalid-XML-document-ftopict227006.html Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=783923Received on Thu May 26 2005 - 22:36:48 CDT