A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
How to Read certain data from a xml file I made? xPath?
Joined: Nov 15, 2009
Aug 02, 2010 01:23:37
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% **
Joined: Apr 16, 2008
Aug 02, 2010 07:29:13
There are many different ways to read XML-based data using
API and other technologies. Study the Simple API for XML (SAX) to learn how.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How to Read certain data from a xml file I made? xPath?
Setting lazy For One-to-One relation using Configuration Object
use generic type as class
Parsing XML file using Xpath in jdk1.4
Automatic DAO code generation
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015