Unix Technical Forum

Avoid XML Schema Validation

This is a discussion on Avoid XML Schema Validation within the Oracle Database forums, part of the Database Server Software category; --> 10gR2 Schema is NOT registered with XDB. I have simple queries like this to extract value from SMALL XML ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-28-2008, 04:39 AM
webtourist
 
Posts: n/a
Default Avoid XML Schema Validation


10gR2

Schema is NOT registered with XDB.

I have simple queries like this to extract value from SMALL XML doc
passed in as CLOB:

SELECT extractvalue(VALUE(rt), '/somexpath/Emp_Id',
c_schema_namespace) INTO l_test
FROM TABLE(xmlsequence(extract(sys.xmltype(some_xml_clo b), '/
somexpath', c_schema_namespace))) rt;


*** Now I have a temporary need - WITHOUT modifying schema - to change
reference from <Emp_Id> to <Emp_SSI>:


SELECT extractvalue(VALUE(rt), '/somexpath/Emp_SSI',
c_schema_namespace) INTO l_test
FROM TABLE(xmlsequence(extract(sys.xmltype(some_xml_clo b), '/
somexpath', c_schema_namespace))) rt;

So I get the error:
ORA-30937: No schema definition for 'string' (namespace 'string ...

And if I remove " c_schema_namespace", I get ORA-31011: XML parsing
failed.


Is there a way to disable or get around this (validation) ?

thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com