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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

XML Parse Failure : Diagnostics / workaround requested

7155Aug 31 2003 — edited Sep 2 2003
Hey people,

I don't know if anyone else has had the issue but I have have hit it several times now and its very frustrating. (Usually as a result of trying to remove incorrect schemas via Enterprise Manager).

If there is ever an invalid XML instance (ie. one that fails to parse) in the XDB views (PATH_VIEW, RESOURCE_VIEW), a select query to return clobs doesn't work. It fails with:

"ORA-31013 XML Parse Failed"
"ORA-19202 : Error occurred during XML processing"

In this case it continues with
"LPX-00234 : namespace 'ts' is not declared
Error at line 5

And some message extension errors and so on and so forth.

A couple of questions...

1) Is it actually necessary to validate the XML to return the CLOB value (or an approximation) of a stored XMLType anyway?
2) Would it be possible to add a validity flag in order be able to restrict against these instances that fail parsing? (For diagnostics / removal purposes).
3) Is there some other way that I am missing for deleting the invalid resource? Every time I try and find the resource or schema record, the XML processing fails and I can't identify it to delete it (manually or otherwise).

Any ideas?

Lachlan

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 30 2003
Added on Aug 31 2003
3 comments
835 views