Why am I getting LPX-00234: namespace prefix "xsi" is not declared when calling XMLTYPE
Hi,
I am trying to load an XML file into a XMLTYPE table column using the XMLTYPE constructor.
I am getting the following errors...
Undefined Exception Raised on XML conversion: -31011, ORA-31011: XML parsing failed
ORA-19213: error occurred in XML processing at lines 2
LPX-00234: namespace prefix "xsi" is not declared
This is the file header with namespace declarations....
<?xml version="1.0" encoding="utf-8"?>
<Invoice xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">