tFileInputXML_1 Invalid XPath expression Unexpected '.'

One Star

tFileInputXML_1 Invalid XPath expression Unexpected '.'

I've tried the example on this post: http://www.talendforge.org/forum/viewtopic.php?id=164 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.
One Star

Re: tFileInputXML_1 Invalid XPath expression Unexpected '.'

Screenshot
Community Manager

Re: tFileInputXML_1 Invalid XPath expression Unexpected '.'

Hi

I reproduced your job and it run fine with TOS2.3.0M1. Please see the screenshots.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tFileInputXML_1 Invalid XPath expression Unexpected '.'

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)
Community Manager

Re: tFileInputXML_1 Invalid XPath expression Unexpected '.'

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
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tFileInputXML_1 Invalid XPath expression Unexpected '.'

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.