jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons this week in the Android 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
Author

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:

netbeans,glassfish,MySQL

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

keycards.xml


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.
-ceyesumma

Note:
………………………………………………………………………………………………

Code description

XMLReader.java

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.
thanks
James Howerton
Ranch Hand

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