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: FourWinds <UseLinkToEmail_at_dbForumz.com>
Date: 26 May 2005 23:36:48 -0400
Message-ID: <4_783923_a50dc7b8ead8698dae8ea9f70e8055d7@dbforumz.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.

-- 
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=783923
Received on Thu May 26 2005 - 22:36:48 CDT

Original text of this message

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