You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Cemre Mengu (Jira)" <ji...@apache.org> on 2022/02/28 18:07:00 UTC

[jira] [Updated] (NIFI-9737) Unreachable namespaces seem to break EvaluateXPath

     [ https://issues.apache.org/jira/browse/NIFI-9737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cemre Mengu updated NIFI-9737:
------------------------------
    Summary: Unreachable namespaces seem to break EvaluateXPath  (was: Unreachable namespaces seems to break EvaluateXPath)

> Unreachable namespaces seem to break EvaluateXPath
> --------------------------------------------------
>
>                 Key: NIFI-9737
>                 URL: https://issues.apache.org/jira/browse/NIFI-9737
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Cemre Mengu
>            Priority: Major
>
> I have an XML file that has xmlns="http://latest/nmc-omc/cmNrm.doc#measCollec"  attribute in root tag. As long this tag is present, all expressions evaluate to empty strings. If I remove this, everything works as expected.
> I am assuming that it tries and fails to resolve this namespace. However, I actually don't need this namespace at all. Is there any way to ignore this behavior if it is intentional?
> It can be reproduced with the following simple content where any simple xpath expression like /bookstore/book[1] will fail
> {code:java}
> <bookstore xmlns="http://latest/nmc-omc/cmNrm.doc#measCollec" >
>   <book category="cooking">
>     <title lang="en">Everyday Italian</title>
>     <author>Giada De Laurentiis</author>
>     <year>2005</year>
>     <price>30.00</price>
>   </book>
> </bookstore>{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)