Menu

#198 Incorrect XPath evaluation

v1.2.0.10
closed-fixed
None
5
2014-11-04
2013-07-18
PhoneixS
No

When I try to evaluate a simple XPath, XML Copy Editor return an incorrect result that is an incremental concatenation of each result item.

For example, this xml:

<?xml version="1.0" encoding="UTF-8"?>
<datos>
  <otros>
    <info id="1" value="a" />
    <info id="2" value="a" />
    <info id="3" value="a" />
  </otros>
</datos>

And this XPath:

/datos/otros/info[@value='a']

Get as result this:

<info id="1" value="a"/>
<info id="1" value="a"/><info id="2" value="a"/>
<info id="1" value="a"/><info id="2" value="a"/><info id="3" value="a"/>

But it sould be something like:

<info id="1" value="a"/>
<info id="2" value="a"/>
<info id="3" value="a"/>

I'm using XML Copy Editor version 1.2.0.9 in Ubuntu 12.04.

Related

Discussion: Incorrect result in xpath with windows

Discussion

  • Zane U. Ji

    Zane U. Ji - 2013-07-21

    Thank you for reporting this bug. It will be fixed in the next release.

     
  • Zane U. Ji

    Zane U. Ji - 2013-07-21
    • status: open --> open-accepted
    • assigned_to: Zane U. Ji
     
  • Zane U. Ji

    Zane U. Ji - 2013-11-02

    [8233e5]

    Please feel free to reopen it if it is not fixed.

     

    Related

    Commit: [8233e5]

  • Zane U. Ji

    Zane U. Ji - 2013-11-02
    • status: open-accepted --> closed-fixed
     
  • Zane U. Ji

    Zane U. Ji - 2013-12-12
    • Group: Bugs --> v1.2.0.10
     

Log in to post a comment.