'xpath to pull nodes based on element partial match
On the below xml snip i'd like to pull row nodes for different batches which is essentially a time stamp, i.e., JP1800 stands for Japan 18 o'clock time.
//*[Batch='LN12000'] pulls all London noon nodes while
data/row pulls all of them including empty Batch values.
How would I pull all London times as //*[Batch='LN'*] does not work?
<?xml version="1.0"?>
-<data>
+<header>
+<row>
+<row>
+<row>
-<row>
<Date>2019-10-21</Date>
<Series>23</Series>
<OnTheRun>N</OnTheRun>
<Depth>0</Depth>
<Batch>JP1700</Batch>
</row>
-<row>
<Date>2019-10-21</Date>
<Series>23</Series>
<OnTheRun>N</OnTheRun>
<Depth>4</Depth>
<Batch>JP1800</Batch>
</row>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
