xpath-2.0 Questions
2
Solved
I want to check using xpath an node in the xml contains empty string/spaces. What is the xpath expression i need to use?
eg:
<p:insert_acc_data_file xmlns:p="http://ws.wso2.org/dataservice"&g...
2
Solved
I'm using powerShell, and I want to use lower-case() in a XPath.Something like that
//Machines/Machine[lower-case(@FQDN)=lower-case('machine2.mydomain.com')]
The documentation indicate that I n...
Bechuanaland asked 22/7, 2014 at 18:42
2
I have an XPath expression as shown below.
if(replace(//p[1]/text(),'H','h') = 'hello') then //p[1]/text() else if(//p[1]/text() = 'world') then //p[2]/text() else 'notFound'
I want to display w...
4
I have recently been working with XPath and have been searching for information on which browsers support XPath 2.0 without much luck. The best I could find was the query technologies comparison ta...
Dumas asked 20/5, 2013 at 21:35
3
Solved
I have a following XML
<?xml version="1.0" encoding="UTF-8"?>
<stationary>
<textbook>
<name>test</name>
</textbook>
<notebook>
<books>
<nam...
2
Solved
I'm working with an XSLT transformation, and I found an interesting question that I couldn't answer:
What's the difference between child::* and child::node()
?
I want to create a condition in whi...
2
Solved
When researching details for an answer to an XPath question here on Stack Overflow, I run into a difference between XPath 1.0 and 2.0 I can find no rationale for.
I tried to understand what . real...
Bibliopegy asked 2/9, 2016 at 19:57
2
Solved
i am trying to use the following xpath query in python
from lxml.html.soupparser import fromstring
root = fromstring(inString)
nodes = root.xpath(".//p3[matches(.,'ABC')]//preceding::p2//p3")
bu...
4
Solved
I have this XML:
<property id="1011">
<leasehold>No</leasehold>
<freehold>Yes</freehold>
<propertyTypes>
<propertyType>RESIDENTIAL</propertyType>...
Narbada asked 19/10, 2012 at 15:15
3
Solved
I know that the function count can be used to count the number of elements in a given sequence, like this:
count(result/actors/actor)
in this XML:
<result>
<actors>
<actor id="...
2
Solved
The question was asked but deleted by the asker before it received an answer. Because I believe the question is sound and legitimate and serves a purpose, I'm asking it again and provide the answer...
2
Solved
If $A and $B are sequences, what is the idiomatically preferred way of testing $A and $B for set equality? I know the existential semantics behavior of ($A = $B) makes this expression not the answe...
0
I need to see if a node exists within a particular XML document. If the node does not exist, then I would like to use another value. With XPath 1.0 this involves craziness using concat. With XPath ...
Wrinkly asked 4/11, 2014 at 14:14
4
Solved
I've tried to use the XPath 2.0 exp //span/string(.) in libxml2, but it doesn't work.
So, my question is: does libxml2 support XPath 2.0 or not?
Lamentable asked 5/7, 2011 at 18:3
1
Solved
What's the difference between preceding:: and ancestor:: in XPath 2.0?
3
Solved
Which XPath 2.0 libraries (apart from saxon) are available, preferably for .Net?
3
Solved
Are there any XML libraries that support XPath 2.0?
I'm specifically looking for an open-source, portable, C-compatible implementation, but for the sake of this question, I'd also like to kn...
3
Solved
i work with Oxygen XMLTester for xPath selectors, supporting XPath 2.0 specification. So i wonder if there is any online tester working with XPath 2.0 spec.?
http://www.xmlme.com/XpathTool.as...
4
XPath 2.0 has some new functions and syntax, relative to 1.0, that work with sequences. Some of theset don't really add to what the language could already do in 1.0 (with node sets), but they make ...
Wyrick asked 14/3, 2013 at 19:29
2
I am trying to figure out the XPath which will retrieve the 'text Data 3' from the following HTML snippet
<span class="inner-span">
Text-data 1
<br>
<span>Text Data 2</spa...
3
Solved
I have a dateTime variable, and I want to convert it to a decimal value of epoch.
How can this be done?
I tried using:
seconds-from-duration($time, xs:dateTime('1970-01-01T00:00:00'))
but it ju...
2
Solved
I have an XML document:
<?xml version="1.0" encoding="ISO-8859-1"?>
<document>
<fruits>
<fruit id="1">
<title>I like pineapples</title>
<description> ...
2
Solved
1
Solved
I have following question relating to XPATH1 and XPATH2:
<document>
<val>3</val>
<val>11</val>
<val>3</val>
<val>2</val>
<val>12<...
3
This is a snippet from the xml:
<sample>
<test>
<Cell1>John</Cell1>
<Cell2>A</Cell2>
<Cell4>xy</Cell4>
</test>
<test>
<Cell1&g...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.