PL/SQL (MOSC)

MOSC Banner

Why am I getting LPX-00234: namespace prefix "xsi" is not declared when calling XMLTYPE

in PL/SQL (MOSC) 3 commentsAnswered

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">

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center