dbTalk Databases Forums  

dbms_xmlschema.registerSchema - invalid XML document

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss dbms_xmlschema.registerSchema - invalid XML document in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
FourWinds
 
Posts: n/a

Default dbms_xmlschema.registerSchema - invalid XML document - 05-26-2005 , 10:36 PM






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_...ict227006.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=783923

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.