This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Reading the XML file using DOM" Watch "Reading the XML file using DOM" New topic
Author

Reading the XML file using DOM

renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Hi,
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
title1title2title3
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 ]

Cheers,
Richard
Eric Pascarello
author
Rancher

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

hint:



Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60740
    
  65

In fact, don't PM questions at all!

Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading the XML file using DOM
 
Similar Threads
Converting an XML document to HTML using Javascript and HTML
Ajax problem while loading option.
Looping XMLHttpRequest
Creating table inside div
struts return response and ajax