Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> dbms_xmlschema.registerSchema - invalid XML document

dbms_xmlschema.registerSchema - invalid XML document

From: John via DBMonster.com <forum_at_nospam.DBMonster.com>
Date: Thu, 26 May 2005 21:03:17 GMT
Message-ID: <d89d705bccd8405ab42cee7d459d6ed4@DBMonster.com>


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>

   </xsd:element>
</xsd:schema>

How to fix? (It also fails the same way with <xsd:documentation> populated inside the annotation)

Thanks. Received on Thu May 26 2005 - 16:03:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US