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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tFileInputXML_1 Invalid XPath expression Unexpected '.'

I've tried the example on this post: https://community.talend.com/t5/Installing-and-Upgrading/Use-tFileInputXML-for-reading-process-lt-jo... on version 2.21/Java but i get this error:
Exception in component tFileInputXML_1
org.dom4j.InvalidXPathException: Invalid XPath expression: ns:. Unexpected '.'
at org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:360)
at org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:59)
at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
at testprojects.testxml.TestXML.tFileInputXML_1Process(TestXML.java:217)
at testprojects.testxml.TestXML.runJob(TestXML.java:444)
at testprojects.testxml.TestXML.main(TestXML.java:390)

Whats the way to get the value from this tag? <street district="Manhattan">Madison avenue</street> (eg. The xpath to get Madison avenue)
See the screenshot for more information.
Labels (4)
5 Replies
Anonymous
Not applicable
Author

Screenshot
Anonymous
Not applicable
Author

Hi

I reproduced your job and it run fine with TOS2.3.0M1. Please see the screenshots.
Best regards
shong
Anonymous
Not applicable
Author

I reproduced your job and it run fine with TOS2.3.0M1. Please see the screenshots.

Thats strange. I tried it both at home and at work. I'll try it with the 2.3.0 version but i doubt if thats it. It should work with older versions also. Could it be the Java version?
I'm running:
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)
Anonymous
Not applicable
Author

Hi
Yes, it is a 2498 in TOS2.2.1. well, it run fine in TOS2.3.0M1, I use the Java version.
Best regards
shong
Anonymous
Not applicable
Author

Okay. Thanks.
I was worried that i missed the bug in bugtracker because i looked there before posting here. Then i saw that you posted it today.