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
JDom and XPath
Edward Chen
Ranch Hand
Joined: Dec 23, 2003
Posts: 758
posted
Jan 22, 2009 20:58:34
0
In the jsp, I could write the code to access xml data, then how to rewrite it using pure
java
coding with JDom?
<x:forEach var="category" select="$doc/categories/category"> <x:set var="name" select="string($category/@name)"/> <x:forEach var="option" select="$category/option"> <x:set var="optName" select="string($option/@name)"/> <x:set var="optValue" select="string($option/@value)"/> </x:forEach> </x:forEach>
I agree. Here's the link:
http://aspose.com/file-tools
subject: JDom and XPath
Similar Threads
small problem with JSTL x tags
JSTL String comparison problem
how to retrieve value of attribute of an xml element tag using jsp
jstl x:set XPath problem
Simple JSTL question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter