I'm having trouble with Oracle SQL and XMLs.
I'll be getting loads of clobs of well-formed XML data from an external system to parse, interpret and fill some tables with. I wrote a solution using XMLTable, which is laid out in a view on the table with the xml clob column in question and some audit info and stuff (I'd like to keep it this way).
NAMESPACES are giving me nightmares. Apparently I can't put them in the xmlnamespaces clause, because I can never know what they are going to be. Preposterous! Delivered items of the same type could have different namespaces at different points in time. There's no finite list. Not even the default xmlns is constant.
The best working solution I've come up with so far is a set of regexp_replace (3, to be precise), erasing all the namespaces before parsing. But performance is a colossal issue.
Surely there's something clever I'm missing?
DBMS_XMLSCHEMA(register schema)
, a lot of schemas are already registered in the DB. However if they are not then you have to get a list of them from all third parties (sending XMLs) and register them in Oracle. – Busoni