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 -> Re: dbms_xmlschema.registerSchema - invalid XML document

Re: dbms_xmlschema.registerSchema - invalid XML document

From: Lewis C <lewisc_at_excite.com>
Date: Fri, 27 May 2005 21:44:51 GMT
Message-ID: <n35f91l424tnjikp0stahllfvn91apogug@4ax.com>


On Thu, 26 May 2005 21:03:17 GMT, "John via DBMonster.com" <forum_at_nospam.DBMonster.com> wrote:

>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.

I don't have acces to my DB right at the moment but a couple of questions:

Does it work without xsd:annotation at all? Does it work with a non blank element between the Annotation begin and end tags?

LewisC



Lewis R Cunningham

Author, ItToolBox Blog: An Expert's Guide to Oracle http://blogs.ittoolbox.com/oracle/guide/

Topic Editor, Suite101.com: Oracle Database http://www.suite101.com/welcome.cfm/oracle

Sign up for courses here:
http://www.suite101.com/suiteu/default.cfm/416752


Received on Fri May 27 2005 - 16:44:51 CDT

Original text of this message

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