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...
Eddo asked 23/5, 2014 at 8:9

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...
Orms asked 8/10, 2018 at 17:37

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...
Powerboat asked 5/3, 2018 at 3:5

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...
Doff asked 8/9, 2017 at 17:11

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...
Hubbs asked 2/12, 2015 at 16:15

4

Solved

I have this XML: <property id="1011"> <leasehold>No</leasehold> <freehold>Yes</freehold> <propertyTypes> <propertyType>RESIDENTIAL</propertyType&gt...
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="...
Ferd asked 3/10, 2015 at 17:37

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...
Pyorrhea asked 18/1, 2010 at 11:30

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...
Brigidbrigida asked 25/3, 2015 at 20:44

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?

1

Solved

What's the difference between preceding:: and ancestor:: in XPath 2.0?
Heckle asked 17/3, 2014 at 13:42

3

Solved

Which XPath 2.0 libraries (apart from saxon) are available, preferably for .Net?
Gylys asked 4/1, 2010 at 21:42

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...
Mudskipper asked 22/12, 2013 at 16:59

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...
Sublingual asked 9/7, 2012 at 8:2

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...
Gheber asked 26/4, 2013 at 16:35

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...
Cilia asked 12/8, 2010 at 12:47

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> ...
Ortego asked 7/4, 2013 at 12:59

2

Solved

I have an XML file and I need to convert it into XQuery. consider a simple set of XML: books[book] book[@isbn, title, descrption] eg: <books> <book isbn="1590593049"> <title&gt...
Profile asked 30/12, 2012 at 6:46

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&lt...
Description asked 2/11, 2012 at 11:28

3

This is a snippet from the xml: <sample> <test> <Cell1>John</Cell1> <Cell2>A</Cell2> <Cell4>xy</Cell4> </test> <test> <Cell1&g...
Intendancy asked 27/9, 2012 at 10:17

© 2022 - 2024 — McMap. All rights reserved.