wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Print out values of xml tags 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 » XML and Related Technologies
Bookmark "Print out values of xml tags" Watch "Print out values of xml tags" New topic

Print out values of xml tags

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
The name of this question is read xml and set txtfields using combobox
Hello and Thank you in advance for any assistance.

System info:


The Purpose of this post is:

I am trying to learn how to read an entire XML file and create an array that the selected index from a combo box will populate text Fields using the index to find the appropriate data.

The functionality of this code is:

I presently have a program that uses a combo box, a switch, and text fields set Text code to populate text fields according to the selected Item (the text) from a combo box.

My task is to build an XML file from the hard coded data (hundreds of set text statements. I have 14 blocks of data tags <keyName> each has a <name>

Code description


My question is:

With my XMLReader.java I am trying to first just print out the values of the <name> . Will it be possible with this code? How can I get this to print the value of the <name>?
Thanks again.


Code description


James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
Yes. I found a good example and now It does work. I need to build a class to load the combobox.
James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
Here is the code to populate my combobox.
I agree. Here's the link: http://aspose.com/file-tools
subject: Print out values of xml tags
Similar Threads
Reading XML file to populate text fields
Referencing classes
parsing data and storing in the xml
LinkedHashMap - trying to use the method removeEldestEntry