[
https://issues.apache.org/jira/browse/AXIS2C-1361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Lazarski resolved AXIS2C-1361.
-------------------------------------
Resolution: Invalid
The behavior is correct per the XPath 1.0 specification. The user needs to use
namespace prefixes in their XPath expression when matching namespaced XML
elements.
> xpath fails when chile elements are prefixed
> --------------------------------------------
>
> Key: AXIS2C-1361
> URL: https://issues.apache.org/jira/browse/AXIS2C-1361
> Project: Axis2-C
> Issue Type: Bug
> Components: xml/om
> Reporter: Damitha N.M. Kumarage
> Priority: Major
> Fix For: 1.7.0
>
> Attachments: test_xpath.c
>
>
> xpath
> Envelope/Header/Topic
> does not work for following
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
> <aip:Topic
> xmlns:aip="http://apache.org/aip">synapse/event/test</aip:Topic>
> .....
> .....
> But work for
> <Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
> <Topic
> xmlns:aip="http://apache.org/aip">synapse/event/test</aip:Topic>
> .....
> .....
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]