I'm having problems with Oracle SQL and XML.
I get a lot of data from well-formed XML data from an external system for parsing, interpreting and populating some tables. I wrote a solution using XMLTable, which is outlined in a table view with the corresponding xml clob column and some audit information, etc. (I would like to save it that way).
NAMESPACES give me nightmares. Apparently, I cannot put them in the xmlnamespaces clause, because I can never know what they will be. Absurdity! Delivered items of the same type may have different namespaces at different points in time. There is no end list. Even standard xmlns is not persistent.
The best working solution I came up with is the regexp_replace set (3, to be precise), erasing all namespaces before parsing. But performance is a huge problem.
Surely there is something smart missing?
user1766472
source share