Linked Questions
12 questions linked to/from Parsing XML with XPath in Java
298
votes
8
answers
499k
views
How to read XML using XPath in Java
I want to read XML data using XPath in Java, so for the information I have gathered I am not able to parse XML according to my requirement.
here is what I want to do:
Get XML file from online via ...
4
votes
3
answers
17k
views
How to use XPath to filter elements by TextContent? get parent by axis?
I've found a similar question on SO, however, that seems not exactly what I wanna achieve:
Say, this is a sample XML file:
<root>
<item>
<id isInStock="true">...
0
votes
2
answers
3k
views
Xpath getting values recursively
I have a xml document like this
<?xml version="1.0"?>
<Employees>
<Employee emplid="1111" type="admin">
<firstname>John</firstname>
<lastname>...
0
votes
2
answers
1k
views
XSL - iterate through elements and update based on the node index from another xml file
I have an XML file with multiple Shape elements each with a child Material element that contains a Code attribute. I want to update the Code attribute for each Material element based on a value that ...
1
vote
1
answer
260
views
xquery to find value of a child attribute by giving values for one attibute at same level and parent and one of
I need to find value for a child attribute by giving values for one attibute at the same level and its parent at highere level.
Another requirement is
find value for a child attribute for which ...
1
vote
1
answer
468
views
Parsing XML with Android and Java
I have to parse this XML https://i.sstatic.net/YrIzS.jpg to extract the highlighted string under the "DetailPageURL" tag. I did a try but have quite confused ideas. I'm working on Android SDK
import ...
-3
votes
4
answers
148
views
XML parsing /JAVA
I have an XML, for example
<root>
<config x="xxx" y="yyyy" z="zzz" />
<properties>blah blah blah </properties>
<example>
<name>...</name>
<...
0
votes
1
answer
163
views
how to i get the xpath value using 1 xpath from 2 different class?
<tr valign="middle">
<td class="marginTd" width="25" align="right">
<a class="actionbtn" onclick="addFavourite();" href="#" data-hasqtip="1" oldtitle="Add Record to Favourites" ...
1
vote
2
answers
155
views
parsing an XML with JAVA
I am trying to parse a few specific parts of an xml doc. I am looking at pulling the data out of the analysis section, I need the warnings, errors, passes and I need to go into each of the sections () ...
1
vote
1
answer
181
views
Parsing Inner <p> tags
I need to parse a xml content and need to find a inner tags inside the
<p><span>test</span></p> <p><span>test12</span></p> <p>Some text<p>...
0
votes
1
answer
161
views
How to extract data from XML?
My XML will look like:
< Header>
< Feature web="true" mob="false" app="true">some data< /feature>
< /Header>
I want java file with the data of web, mob, app in boolean and ...
0
votes
1
answer
44
views
Looking for a specific child in XML using java
I've been looking for the past few hours, and I can't find how to do it.
My XML file:
<list>
<Company id="01">
<Name>Atari</Name>
<Founded>1972</Founded&...