This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Engineering
»
XML and Related Technologies
Author
XML keyword search
krishna moorthyv
Greenhorn
Joined: Dec 13, 2012
Posts: 7
posted
Jan 30, 2013 13:40:07
0
For an XML keyword search project, users may search any value in the XML code
<?xml version="1.0" encoding="UTF-8"?>
<company>
<staff id="1001">
<firstname>sachin</firstname>
<lastname>tendulkar</lastname>
<nickname>TON</nickname>
<salary>100000</salary>
</staff>
<staff id="2001">
<firstname>MS</firstname>
<lastname>Dhoni</lastname>
<nickname>MSD</nickname>
<salary>200000</salary>
</staff>
<staff id="3001">
<firstname>yuraj</firstname>
<lastname>singh</lastname>
<nickname>yuvi</nickname>
<salary>200000</salary>
</staff>
</company>
If the user searches for 20000, the result will available in ID 1001 and 2001 so the output should be like:
ms
dhoni
msd
200000
yuraj
singh
yuvi
20000
I need code to do this in Java.
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
13
I like...
posted
Jan 30, 2013 14:12:21
0
Where is your code? What problems are you having with it? Please be sure to read
NotACodeMill
.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
13
I like...
posted
Jan 30, 2013 15:11:13
0
I've closed this due to a new topic being posted.
I agree. Here's the link:
http://aspose.com/file-tools
subject: XML keyword search
Similar Threads
XML file parsing in Java using SAX
code to read the xml and also overide the value of certain attributes in xml at runtime itself
The pain of a beginner developer - deciphering cryptic documentation and such
Dom to JAXB
How to get a xml id value in java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter