You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Stefan Goldener (JIRA)" <ji...@apache.org> on 2018/08/08 13:49:00 UTC

[jira] [Commented] (NIFI-5497) XPATH interpretation not correct

    [ https://issues.apache.org/jira/browse/NIFI-5497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16573246#comment-16573246 ] 

Stefan Goldener commented on NIFI-5497:
---------------------------------------

I still consider this as a BUG but for those who stumble upon this Jira there is a workaround:
{code:java}
//@*[name()="xlink:href"]{code}
or
{code:java}
//@*[local-name()="href"]{code}

> XPATH interpretation not correct
> --------------------------------
>
>                 Key: NIFI-5497
>                 URL: https://issues.apache.org/jira/browse/NIFI-5497
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>         Environment: CentOS 7
>            Reporter: Stefan Goldener
>            Priority: Major
>         Attachments: image-2018-08-08-13-21-37-820.png
>
>
> For example using the following XML:
> {code:java}
> <?xml version="1.0" encoding="UTF-8"?>
> <item xmlns:xlink="http://www.w3.org/1999/xlink"
> a="17"
> date="2018-02-16T22:19:45+01:00"
>  xlink:href="http://url.com/webservice/rest/1.0/"/>{code}
>  
> With XPATH i can usually do:
> {code:java}
> //@xlink:href{code}
> to get the url.
>  
> This does not work with Nifi because it evaluates the XPath expression somehow incorrectly.
> !image-2018-08-08-13-21-37-820.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)