File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Reading the XML file using DOM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Reading the XML file using DOM" Watch "Reading the XML file using DOM" New topic

Reading the XML file using DOM

renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
I am using the below code to extract the values of the titles tag which is a child of item tag in the XML.

When i do like this,it is extracting all the values from the XML and putting it on the browser as below
But what i exactly want is to list these values in the drop down box(id ="bp"). So i have written a code something like this.

And the appendToSelect is defined as

But while doing like this, nothing gets added into the dropdown box.
[ December 16, 2008: Message edited by: renu richard ]

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Do not PM me 3 times to answer your question. I am not up at 5AM!


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

In fact, don't PM questions at all!

Please read this for more information.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Reading the XML file using DOM
It's not a secret anymore!