Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Multi attribute in xml schema - in the root element

EladFeb 27 2014 — edited Mar 5 2014

Hi

I have several attribute in xml file. all of them  - in the root element.

I know that I have to put the declaration of the attribute in the  bottom of the schema.

When I put only one attribute in the schema - everything is OK.

but I have more than one attribute (I have 8 attributes...), and the I get this error:

ORA-01460: UNIMPLEMENTED OR UNREASONABLE CONVERSION


xml file:

<MyRootElement Myattribute1="MyValue1"

                             MyAttribute2="MyValue2"

                             MyAttribute3="MyValue3"

                             xmlns="http://www.oracle.com/xml/test.xsd"

                             xmlns="http://www.w3.org/2001/xmlSchema-instance in the beginning of this row it's should be written: "xmlns:xsi" , but this is erased....

                             xsi:schemaLocation=http://www.oracle.com/xml/test.xsd    my_schema_file.xsd">

xsd file:

<schema targetNameSpace="http://www.oracle.com/xml/test.xsd"

               xmlns="http://www.w3.org/2001/xmlSchema"

               xmlns : xdb = "http://xmlns.oracle.com/xdb"

               vesion="1.0"

               elementFormDefault="qualified">

<element name="MyRootElement">

     <complexType>

               <sequnce>

                         ----------------

                         ---the rest of the xsd file -------------

                        ---------------------------------------------

              </sequnce>

                    <attribute  name="MyAttribute1"  type="string"  use="required"

                    <attribute  name="MyAttribute2"  type="string"  use="required"

             </complexType>

</element>

</schema>

Anyone knows what the problem is?

Thanks in advanced,

Elad

This post has been answered by odie_63 on Feb 27 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2014
Added on Feb 27 2014
18 comments
6,877 views