Linked Questions
11 questions linked to/from Concatenate multiple node values in xpath
1
vote
5
answers
12k
views
XPath to join all resulting nodes with string separator
I want to join the values of all the nodes that match an expression and have them separated by a comma. For example, the following xml should return "num1,num2,num3"
<products>
<product>...
3
votes
4
answers
1k
views
XPATH - get tuples of parent and child
Suppose this is my XML:
<animals>
<mammals>
<an>dog</an>
<an>cat</an>
</mammals>
<reptiles>
<an>snake</an>
&...
0
votes
1
answer
1k
views
XPath concatenate table row cells
I am trying to extract the concatenated cells from a HTML table for each row using XPath. For example, if I have a table like
<table>
<tr><th>FirstName</th><th>LastName&...
1
vote
1
answer
609
views
sas reading xml (xfdf) with xml engine, map for multiple ><span
in these days I'm totally struggling myself trying to let sas read an xfdf file, an export of comments (annotation) in a pdf with adobe professional.
If you never worked with an .xfdf file, don't ...
2
votes
1
answer
442
views
Using XPath is it possible to get the name of each node in a path to a target node as a String?
Using XPath is it possible to get the name of each node in a path to a target node as a String?
Example.xml
<parent>
<childOne>
<target>true</target>
</...
0
votes
1
answer
453
views
How to correctly concatenate XPath?
I try to match multiple elements and all their occurences through concatenation.
I tried two expressions
concat(//h5,'###',//h5/following-sibling::p)
concat(//*/h5,'###',//*/h5/following-sibling::p)
...
0
votes
1
answer
411
views
How to specify XPath to produce a list containing element text concatenated with its parent element attribute
I'm still new to XPath, and trying to deal with a sizeable dataset having some complex structure. Here's some sample data:
...
<div2 id="n104226" key="to/lmh" type="main&...
0
votes
1
answer
466
views
XPath concat two children
I know this is a commonly asked question (I found Concatenate multiple node values in xpath XPath joining multiple elements and a few others), but for the life of me I can't figure it out. I've got ...
1
vote
2
answers
212
views
xpath to concatenate two subnodes for each node
I have a XML as follows:
<rss version="2.0">
<channel>
<language>en</language>
<pubDate>Tue, 19 Mar 2024 06:06:35 GMT</pubDate>
...
0
votes
1
answer
108
views
How to retrieve two attributes for each required node
I am using Google Sheet to read XML data.
Unfortunately I am struggling to extract the XML correctly.
https://www.w3schools.com/xml/xpath_syntax.asp, SO and other Googled sources didn't help.
While ...
0
votes
1
answer
91
views
How to get selected text between different tags with XPath?
I try to get text values from between span tags with XPath which do not contain a class attribute with the value "hide". Please show me the right way, based on my example code. My code is only a part ...