I have an well formed XML in CLOB column loaded in l_xml_content
variable.
The XML looks like
<?xml version="1.0" encoding="UTF-8"?>
<peci:Workers_Effective_Stack xmlns:peci="urn:com.workday/peci">
<tag1>
...
</tag1>
I'able to get namespace urn:com.workday/peci
.
I use this code to get the whole XML
DECLARE
l_xml_data XMLType;
l_xml_content CLOB;
BEGIN
SELECT clob_xml INTO l_xml_content FROM my_table;
l_xml_data := XMLType( l_xml_content );
DBMS_OUTPUT.put_line( 'NameSpace = ' || l_xml_data.getNamespace );
END;
The result is
NameSpace = urn:com.workday/peci
How can I get the first part of the namespace ? xmlns:peci=
How do you name this part ?
I know nothing about the XML. I only assume that the XML is well formed.