You can
use Java API for XML Processing (JAXP) for processing the XML document
using your java code. This API has all the classes needed to work with
XML documents. It has all the necessary methods and properties for manipulating
the XML documents.
_______________________________________________
_______________________________________________
For those who have worked with other scripting languages and programming
languages to manipulate the XML documents, using the java code and the
JAXP would be easy. The logic is the same but only the methods and properties
might vary. Basic knowledge of object oriented programming would help
you though.
To read
the XML document from java code, you need a document object first. This
is created in three steps using the JAXP. First a DocumentBuilderFactory
is created and then a DocumentBuilder is created. Then finally a Document
object is created.
The XML
file is loaded into it and then certain methods like getElementsByTagName()
are used to retrieve all the elements of a particular name and store
them in an array called NodeList. This NodeList is looped through using
a 'for' loop or some other way to get all the values needed.
Current Newswire: (Linux Today)
"A few days ago, Walter Mossberg, writing in the Wall Street Journal, offered a verbal peek at the Mac user interface intended as heads-up for Windows XP users thinking of switching.
posted by Will Senn on Wed 30th Nov 2005 19:03 UTC (OS News)
This latest installment in the Core series from Prentice Hall PTR is a welcome arrival to the PHP/MySQL space. It is jam packed with useful information. At a little over 850 pages, this volume contains information on nearly every topic of interest in both the PHP and MySQL subject areas.
Linked by Thom Holwerda on Thu 6th Oct 2005 11:05 UTC (New Mobile Computing)
The Servlet-Based Content Creation Framework is an easy-used and easily-understood compact, content creation framework utilizing hamlets; a servlet extension that reads XHTML and uses the simple API for XML. Read this article on introducing Hamlets and learn how they can be used to separate Java and HTML in the same source file.
Linked by Thom Holwerda on Wed 21st Jun 2006 22:08 UTC, submitted by anonymous (OS News)
"This list is compiled from a variety of sources and is intended for anyone who wishes to find centralized reading material about Eclipse . One of the biggest challenges new Eclipse users face is where to find the right information for a task.