Hi,

 

I have an unexpected xpath's result when i use JaxenXPathExpression :

First, it seems that JaxenStringXPathExpression doesn't work with namespace.

Next, with I use a simple expression like "/q0:mail/q0:pFrom/text()" instead
of retrieve the string

between the pFrom tag, I get a ([[#text:[EMAIL PROTECTED],1) ????

And what I want is the mail address :-), why is there other characters???
It's look like a list ?.

I have tried with index "/q0:mail/q0:pFrom[1]/text()", the result is the
same .

 

Thanks for any help.

 

 

 

 

 

 

...

 

<bean class="org.apache.servicemix.expression.JaxenXPathExpression">

            <property name="namespaceContext"  ref="namespace"/>

            <property name="xpath" value="/q0:mail/q0:pFrom/text()"/>


</bean>

 

..

 

<bean id="namespace"  class="org.jaxen.SimpleNamespaceContext">

     <constructor-arg>

       <map>

         <entry>

           <key><value>q0</value></key>

           <value>http://service.ext</value>

         </entry>

       </map>

     </constructor-arg>

</bean>

 



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.

Reply via email to