Forum Discussion

dfana's avatar
dfana
Visitor
8 years ago

Problemon With XPATH in Properties Transfer

I have a problem with the properties transfer show that error went I want populate the value node which would be the correct value for xpath? 

 

Extra Info

 

Error: 

Wed Sep 14 12:38:30 BOT 2016entidad[net.sf.saxon.trans.XPathException: XPath syntax error at char 20 on line 2 in {\n//xmlns:web:execute/web:msgE...}: Invalid QName local part {web:execute}]

 

Xpath: //xmlns:web:execute/web:msg/xsd:node

 

XML: 

 

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:java="http://xml.apache.org/xslt/java" xmlns:xsd="http://ws.com/xsd" xmlns:web="http://ws.com">
   <soap:Header/>
   <soap:Body>
      <web:execute>
         <web:msg>
            <xsd:node></xsd:node>
         </web:msg>
      </web:execute>
   </soap:Body>
</soap:Envelope>

Thanks a lot and sorry for the bad inglesh. 

 

1 Reply

  • kondasamy's avatar
    kondasamy
    Regular Contributor

    I guess the XPATH is incorrect. Please try the below one including the name space declaration and let us know the result,

     

    declare namespace ns1='http://ws.com';
    declare namespace ns2='http://ws.com/xsd';
    //ns1:execute[1]/ns1:message[1]/ns2:node[1]/text()

     

    Thanks,

    Kondasamy