Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
portix
Contributor II
Contributor II

Issue with XPath and Namespace Prefix in Talend tXMLMap Component

Hi everyone,

I'm working with an XML file in Talend that has the following header:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<BackOffice xmlns="exampleNamespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="exampleNamespace example.xsd">

When processing this XML using a tXmlMap component, I get the following error:
org.dom4j.XPathException: Exception occurred evaluating XPath: @xsi:schemaLocation. Exception: XPath expression uses unbound namespace prefix xsi

Could someone guide me on how to correctly bind the namespace prefix or handle this issue in Talend?

 

Labels (3)
1 Solution

Accepted Solutions
Dave_Simo
Creator II
Creator II

Hello,

With a tXmlMap I have the same error as you but with a tExtractXMLFileds , I managed to recover the value as below.

Dave_Simo_0-1732716148517.png

Dave_Simo_1-1732716174624.png

Best Regards,

View solution in original post

1 Reply
Dave_Simo
Creator II
Creator II

Hello,

With a tXmlMap I have the same error as you but with a tExtractXMLFileds , I managed to recover the value as below.

Dave_Simo_0-1732716148517.png

Dave_Simo_1-1732716174624.png

Best Regards,