SCHEMAVALIDATE() fails only in the oracle database.

I have this function that performs a simple XML validation against a XSD upload in the database.


[code]

PROCEDURE do_xml_validation (xmlRequest IN XMLTYPE, xsdToValidate IN VARCHAR2, OUT VARCHAR2 returnStatus)

IS

lx_xmldoc XMLTYPE.

BEGIN

lx_xmldoc: = xmlRequest.createSchemaBasedXML (xsdToValidate);

Start

lx_xmldoc. SCHEMAVALIDATE();

returnStatus: = STATUS_OK;

EXCEPTION, THEN THAN OTHERS

THEN

dbms_output.put_line ('[do_xml_validation] = invalid XML = > ' |) SQLERRM);

util.Comment ("[do_xml_validation] = invalid XML = > ' |") SQLERRM);

returnStatus: = sqlerrm;

END;

END do_xml_validation;

[/ code]

Now... the XML and XSD below, validate correctly in xmltools for notepad ++, as well as in W3C web site:
Validation W3C XML Schema (XSD) online

It fails only in the database with this error:

"ORA-31154: invalid XML document.

ORA-19202: an error has occurred in the processing of XML

' LSX-00333: literal "dot1q 4090' is not valid with respect to the model.

It is linked with the attribute 'encapsulationEnumeration '...

Anyone with similar problems? I can't explain why this fails in Oracle only.

XML is:

< SSLI class = "FLOW_POINT" name = "dasfasfd" transaction = "crΘer" >

<>attributes

< name > sdfsafd < / name >

< port_name > < / port_name >

< encapsulation > dot1q 4090 < / encapsulation >

< / attribute >

< / SSLI >

Download XSD in the database

<? XML version = "1.0" encoding = "UTF-8"? >

<!--

XSD schema for the active catalog entry

Seller: IOS_XE

RFS: EthernetFlowPoint

->

" < xs: schema xmlns: XS =" http://www.w3.org/2001/XMLSchema "elementFormDefault ="unqualified"> "

<! - TYPE SIMPLE DEFINITIONS - >

< xs:simpleType name = "encapsulationEnumeration" >

< values basic memberTypes = "stringEnum dot1qString seconddot1qString" / >

< / xs:simpleType >

< xs:simpleType name = "stringEnum" >

< xs:restriction base = "XS: String" >

< xs:enumeration value = "default" / >

< xs:enumeration value = "any" / >

< xs:enumeration value = 'priority-tag' / >

< xs:enumeration value = 'unidentified' / >

< / xs:restriction >

< / xs:simpleType >

< xs:simpleType name = "dot1qString" >

< xs:restriction base = "XS: String" >

< value pattern = "dot1q\s ([1-9] |)" [0-9] [0-9] | [1-9] [0-9] [0-9] | ([1-3] [0-9] [0-9] [0-9]|40[0-8][0-9]|409[0-4]) "/ >

< / xs:restriction >

< / xs:simpleType >

< xs:simpleType name = "seconddot1qString" >

< xs:restriction base = "XS: String" >

< value pattern = "dot1q\s ([1-9] |)" [0-9] [0-9] | [1-9] [0-9] [0-9] | [1-3] [0-9] [0-9] [0-9]|40[0-8][0-9]|409[0-4])\ssecond-dot1q\s ([1-9] |) [0-9] [0-9] | [1-9] [0-9] [0-9] | ([1-3] [0-9] [0-9] [0-9]|40[0-8][0-9]|409[0-4]) "/ >

< / xs:restriction >

< / xs:simpleType >

<! - GROUPS DEFINITIONS - >

< name XS: Group = "AttributesGroup" >

< xs: SEQUENCE >

< xs: element name = "name" type = "xs: String" minOccurs = "1" maxOccurs = "1" / >

< xs: element name = "port_name" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

< xs: element name = "encapsulation" type = "encapsulationEnumeration" minOccurs = "0" maxOccurs = "1" / >

< / xs: SEQUENCE >

< / xs: Group >

<! - BASIC DEFINITIONS of COMPLEX TYPES - >

< name XS: complexType 'SSLI' = >

< xs: SEQUENCE >

< xs: element name = "attributes" minOccurs = "1" maxOccurs = "unbounded" >

< xs: complexType >

< xs: Choice minOccurs = "1" maxOccurs = "unbounded" >

< xs: Group ref = "AttributesGroup" / >

< / xs: Choice >

< / xs: complexType >

< / xs: element >

< / xs: SEQUENCE >

< name XS: attribute = "class" type = "xs: String" use = "required" / >

< name XS: attribute = "name" type = "xs: String" use = "required" / >

< name XS: attribute = "transaction" type = "xs: String" use = "required" / >

< / xs: complexType >

<! - ROOT ELEMENT - >

< xs: element name = "SSLI" type = "SSLI" / >

< / xs: Schema >

Anyone with similar problems? I can't explain why this fails in Oracle only.

This is a bug.

I can reproduce it on 12.1.0.2 too, even during the recording of binary XML schema.

There have been some problems with validation of model for a while now pending, and they are not yet fixed.

You must open a SR with Oracle's Support.

BTW, in the future, to the right place for these issues would be the XML DB forum.

Tags: Database

Similar Questions

  • BAM works with the Oracle database only in the backend.

    Hi, I was wondering if Oracle Business Activity Monitor (BAM) implemented in ADF application works with the Oracle database as Oracle database is one of the databases very little supporting the database change Notification? Or can it be implemented using database of MySQL etc.

    Thank you!

    Published by: 996574 on June 3, 2013 14:06

    As far as I KNOW only Oracle db supports the database change Notification.

    Timo

  • Area of private use in the Oracle database

    Hello

    one of my customers have very specific needs. In this case, it has its own "characters". It uses Latin characters and certain characters. Their data are mixture of these characters. Their own characters are not in Unicode format and we have specific policies.

    These specific characters will be in the private use area, but I don't know if and how the Oracle database support unicode private use area.

    Oracle database support unicode private use area?

    And what sorting, filtering data? What classification is applied?

    Does anyone have experience with characters in the private use area?

    Thank you

    Fabrice.

    Oracle supports Unicode PUA you can store codes of PUA in a database AL32UTF8 and you can treat strings containing characters without special considerations. PUA characters are classified into letters in the Oracle database.

    Oracle maps the characters (EUDC) user of various character sets defined multibyte (JA16SJIS, ZHS16GBK, ZHT16MSWIN950, KO16MSWIN949, etc.) to the characters of PUA. These characters are also used by the former Hong Kong HKSCS extension mapping. If supporting user-defined characters in PUA is not a problem for the customer, they can use the standard plane 0 (BMP) PUA [U + E000 to U + F8FF] in their purpose. However, to avoid conflicts with existing maps, they should put their characters in plane 15 PUA [U + F0000-U + FFFFD] or plane 16 PUA [U + 100000-U + 10FFFD]. The downside is that the planes 15 and 16 require four bytes per character in AL32UTF8 compared to three bytes for plane 0.

    The classification applied to the characters PUA is the same as that applied to the other characters in a given environment. The order of the characters PUA in the given classification, depends on the type of snack:

    • In BINARY classification, the comparison is obviously based on binary codes. The order depends on encoding (AL16UTF16 vs AL32UTF8), especially for aircraft 15 and 16 PUA plane.
    • In monolingual rankings (which are not well suited for Unicode characters anyway) PUA are generally ignored in the sorting (but does not) than the characters defined explicitly in the given classification. Compared only among themselves, they use the UTF-16 Binary order.
    • In multilingual characters rankings PUA are generally classified after all characters defined explicitly in the rankings, which are characters from scripts (Latin, Cyrillic, Greek, Georgian, Armenian) Europeans and, in some rankings, an East Asian script. Between them, they are classified according to AL16UTF16 (= UTF-16BE) binary collation.
    • In the UCA, the characters multilingual rankings PUA generally are classified into once all characters defined explicitly in the rankings, which are usually all defined Unicode characters. Between them, they are classified according to AL32UTF8 (= UTF - 8) binary collation. Note that the UCA rankings are new in the database Oracle 12 c.

    Thank you

    Sergiusz

  • How to find the name of the Oracle database server?

    People,

    Hello. I installed Oracle Database 11 g 2 OS Oracle Linux 5. The installed directory is/home/user/OracleDB_Home and/home/user/OracleDB_Base.

    Host name is "mylinux". Name of the database instance is PT853.

    I use "mylinux" as the name of the database server, it does not work. I use another way to do as below:

    Export ORACLE_HOME = / home/user/OracleDB_Home

    Can I use "mylinux ORACLE_HOME" as the name of the database server, it does not work either.


    My question is:

    How to find the name of the database server Oracle with Oracle Linux 5 OS?


    Thank you.

    You must learn the basic of database Oracle.

    Please don't regard it not same as SQL server in terms of configuration.

    You never specify the database server name in Oracle.

    You specify the host name in only two places, 1) Tnsnames.ora/JDBC/ODBC (or any client you want to connect) and listener.ora) 2.

    There was nothing called specify the name of the Oracle database from an oracle database server.

    Concerning

    Anurag.

  • Record great shape data in the Oracle database

    Hi all

    I have a question as to how we store a large xml for example more than 10000 bytes in the oracle database. I tried to use varchar, but the length is limited to only 4000 bytes. Could someone let me know how to achieve this.

    Basically what I'm doing is in adobe livecycle workflow I will get the user entered data in the form as formData (xml) variable and I want to keep the same for any future reference. I need to use the same data to fill the form again in the future.

    Thanks in advance.

    Shekhar,

    I had handy MySQL, so I did it using that and attached here is a sample. For Oracle, this is mission for you as well as recovery.

    -Wasil

  • The Oracle database is free for individuals?

    Is the Oracle database free for private developers, just test the database, or what I personally contact them in order to pay them? Only, I went to the page of download of Oracle and downloaded 2 pcs. Installation of 1 GB, installed files database on my Windows 7 computer and then started using it.

    Have you paid attention to the license agreement you agreed before downloading software? Restrictions on use are clearly stated.

    Oracle Technology Network Developer for Oracle Database 11g Express Edition license terms

    The limits for 11g XE are also documented-

    Oracle & reg; Database Express Edition

    Oracle & reg; Database Express Edition

    HTH
    Srini

  • How to start the oracle database server and its client in windows 8

    Hi all

    I am a new entry in this forum and I am a beginner with oracle database.

    I always used SQL Server as the database, and it was easy to use after installation.

    With management program configuration of SQL Server I could to start service SQL Server (SQLEXPRESS) and the database server start!

    With SQL Server management studio, I was able to launch the client application, then was to establish a connection to the server and everything worked great!

    Now, how to work with the oracle database?

    I installed the oracle server and client version 11g R2 in windows 8, but how do I start the database?... and how can I start the client application to query?

    best wishes in advance.

    PS: Sorry for my English.

    If you are on the same machine, the only service that you absolutely need to start is the database service.  In your case OracleServiceSYSDBA (hmmm... How did you find with this name?).

    For queries, you can use SQL * Plus which should also be installed.  If you want something GUI, you can use SQL Developer (you need to install separately I think).

  • using the R function on the Oracle database

    for the use of R, I can only use Oracle data mining algorithms, or I can use the R function as social network in the Oracle database?

    Could you please be more specific about the R functions/packages you are interested in. The ODM and ore are part of the unique option of OAA.

  • How to insert vidio file in the oracle database

    Hi Experts,

    Can you please tell me, how to insert video in the oracle database.
    and what are the formats it supports.

    Thanks in advance,
    Sanjeev,

    To do this, you don't need an expert, you only need the capacity and the ability to googleor search this forum.
    This question was asked here several times by people who, like you, have refused to use online resources.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • The Oracle HTTP Server come FREE with the Oracle database

    Hello

    Please let me know if Oracle HTTP Server are FREE with the Oracle database.

    Also any idea how much it would cost roughly to buy independent?

    Thank you
    Please let me know if Oracle HTTP Server are FREE with the Oracle database.

    If this is a related issue of license then better check with the sales representative in your area. Oracle sales team can only confirm the details.

    As far as I know if a product is delivered in another product then product main price includes the price of the licenses for all.

    Example: OEM license purchase, will include the license for Weblogic.

  • Database alert is not triggered when the Oracle database monitor by mistake.

    Hello

    Database alert is not triggered when the monitor of the Oracle database by mistake. If we test the alert manually alert works correctly. Could someone let me know the solution for this.

    This isn't a question of PC or operating system. You should post your questions in the forums of Oracle database.

  • What is the name of the table that has the name of the custom in the Oracle database Section?

    What is the name of the table that has the name of the custom in the Oracle database Section?

    Thank you

    Nefertari

    The names of the custom Sections are stored in commonExtendedAttributeML, the extended attribute table.

  • How to store images in the oracle database and get back on a jsff page in ADF?

    Mr President.

    How to store images in the oracle database and get back on a jsff page in ADF?

    I have students and employees in my database and want to store their pictures against their ID.

    How to do this?

    Concerning

    Tender,

    You can check the links that explain this below.

    https://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-2/

    Johny tips: ADF: display image files from database as a popup in Application Web ADF

    See you soon

    AJ

  • Why use Oracle Grid in the oracle database

    Hi experts,

    In fact in my workplace, we use normal database (use not the grid). I want to know why we use the grid in the oracle database. all that the advantage of it.

    Reg,

    Thomas

    You might have a grid of database servers (access to the shared storage) or application servers.

    You can use the Grid control to monitor and manage multiple database / application servers.

    10g and 11g and 12 c facilities grid Infrastructure is installed to facilitate the DSO (is not part of the 10g GI) but a part of the 11 g and 12 c GI and Clustering.

    Then, depending on the context "grid" can refer to another product.

    Hemant K Collette

  • PDF files in the Oracle database

    First all the Hi and thanks to all the gurus of this forum to provide non-stop services to solve problems at the global level.

    I'm using Oracle Database 11 g - R1 with Oracle Application Express 4.1.

    My clients (end-users) can visit to download PDFs in the database via a built-in Oracle Application Express application.

    All of a sudden ".dmp" size increased rapidly from 360 MB to 2.7 GB and everything that happened due to downloading of PDF files.

    I want to know it's alarming for the Oracle database? Because I'm in doubt, users have a lot of files to download, Services of Oracle database that will / Performance will be disturbed by the increase in the size of the database or Oracle database server could be crushed?


    Please confirm. Thanks in advance.

    Looks: Mohammed Uzair Awan

    Performance may be affected.
    Backup time would increase.
    Backup space (disk / tape) would increase the requirements.

    There should not be a 'crash' of the database
    As you run 11 GR 1 material, I assume that you do not run the Express edition.

    Hemant K Collette

Maybe you are looking for

  • cursor jump after update of the Sierra

    After update of last week to Sierra of MacOS, I noticed many times randomly my cursor will jump erratically. I noticed several times why in an application like Photoshop Adobe or Illustrator but today it happened so that in Safari. Its very rare that

  • What part of fan should I buy - HP Desktop

    I have a HP Pavilion elite e9220y award-winning House. prod # NY553AA Windows 7; 64 bit I think my fan is going; should what part I buy? must be a part of HP? I posted a similar question yesterday, but the answer was a hard drive! So I try again... T

  • Using Sony NWZX2 with Apple. Are there others who use both this MP3 player with Apple computers?

    I almost filled my Sony walkman MP3 players two years of use with my windows computers. I was looking to buy a jukebox of Apple player to replace both of these players and have all of my library on a player. The jukebox is no longer available, so I b

  • Unable to connect to MSN Premium

    When I try to connect to MSN Premium it will attempt (2) immediately and said "we can not connect because we cannot check the status of your account." I disabled my internet protection of Kaspersky and it has no effect.  My other computer is fine.

  • Cannot activate Windows install error: this file is marked for deletion.

    Original title: the windows installer is disabled. When I try to change its status to automatic or manual, a pop up says this file is marked for deletion, how to fix this? XP Professional platform