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: 
Sid3
Contributor III
Contributor III

tXMLMAP namespace issue

Hi,

 

I am extracting data from XML file. Here is the flow.

 

tXMLInput --> tXMLMap --> tFileoutput

 

in tXMLMap i have field from source 

 

[row2.Filename:/POSLog/Transaction/RetailTransaction/LineItem/xyz:YUMBOHTransactionExtensions/xyz0683p000009M9p6.pngpeedOfService/xyz0683p000009MA5A.pngrderSpeedOfService/xyz0683p000009M9p6.pngOSTransaction/xyz:Event/xyz:EventID/@EventName.]

 

while extracting this field i am getting below error.

 

TPrefix0:RetailTransaction/TPrefix0:LineItem/xyz:YUMBOHTransactionExtensions/xyz0683p000009M9p6.pngpeedOfService/xyz0683p000009MA5A.pngrderSpeedOfService/xyz0683p000009M9p6.pngOSTransaction/xyz:Event/xyz:EventID/@EventName.
Exception: XPath expression uses unbound namespace prefix xyz

 

 

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi
According to the answer of this related problem, you need to add namespace to xyz.
https://stackoverflow.com/questions/14934178/applying-xpath-on-xml-where-namespaces-are-with-childre...
On tXMLMap, right click on xyz and select 'set a namespace' option to add a namespace. Let me know if it resolves the issue.

Regards
Shong

View solution in original post

1 Reply
Anonymous
Not applicable

Hi
According to the answer of this related problem, you need to add namespace to xyz.
https://stackoverflow.com/questions/14934178/applying-xpath-on-xml-where-namespaces-are-with-childre...
On tXMLMap, right click on xyz and select 'set a namespace' option to add a namespace. Let me know if it resolves the issue.

Regards
Shong