This week's book giveaway is in the
General Computing
forum.
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Engineering
»
XML and Related Technologies
Author
How to Read certain data from a xml file I made? xPath?
Chrix Wu
Ranch Hand
Joined: Nov 15, 2009
Posts: 121
posted
Aug 02, 2010 01:23:37
0
lets say i have following data in a config file,
i was wondering how do i read the "class" attribute from the file?
my colleague suggested me to use xPath, but how? read as an inputstream or what? or is there any existing api i can use?
do you guys have other suggestions? thanks in advance.
<persistentClass > <application name=xxx class=yyyy/> </persistentClass>
** SCJP 5.0 84% **
** SCWCD 1.5 76% **
Jimmy Clark
Ranch Hand
Joined: Apr 16, 2008
Posts: 2187
posted
Aug 02, 2010 07:29:13
0
There are many different ways to read XML-based data using Java API and other technologies. Study the Simple API for XML (SAX) to learn how.
Good luck!
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: How to Read certain data from a xml file I made? xPath?
Similar Threads
Parsing XML file using Xpath in jdk1.4
use generic type as class
Setting lazy For One-to-One relation using Configuration Object
generic parser
Automatic DAO code generation
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter