Evaluate XPath command
Posted: Wed Sep 16, 2015 10:24 am
I've got an XML like so (thank you W3schools
):
And I've got code like this:
(which translates to)
Running this I would expect the variable BLUT to contain the whole XML, but it returns empty.
I wanted to get a value deeper than root, but since that didn't work either (bookstore/book/price).
So I tried to get the whole thing, but even that doesn't work.
What am I doing wrong?

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<bookstore>
<book>
<title lang="en">Harry Potter</title>
<price>29.99</price>
</book>
<book>
<title lang="en">Learning XML</title>
<price>39.95</price>
</book>
</bookstore>
And I've got code like this:
Code: Select all
~InstallAware Clipboard Data~
~Evaluate XPath Query~
~{A280858C-6078-45D2-A0D1-348959A6AAC8}~
~"C:\hello.xml"~
~/~
~BLUT~
~0~
(which translates to)
Code: Select all
Evaluate Query / on XML "C:\hello.xml", get result into variable BLUT as type Full XML String
Running this I would expect the variable BLUT to contain the whole XML, but it returns empty.
I wanted to get a value deeper than root, but since that didn't work either (bookstore/book/price).
So I tried to get the whole thing, but even that doesn't work.
What am I doing wrong?
