Parsing xml file and display using JTextfield

Hi Guys

Basically all I'm trying to do is parse a simple xml file(maybe even just one line of text) and display it in a JTextfield.

I'm a complete newbie to java/xml, This looks pretty easy but somehow I just can't figure it out.

I've checked various websites but still can't find any good basic examples. If someone could point me in the right direction it would be really really great.

[417 byte] By [lc180a] at [2007-11-26 19:17:33]
# 1

What is your problem? The parsing of xml-file or the displaying in a JTextField?

Here you will find examples for the JTextField:

http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html

I use jdom for the parsing of xml in my project and find it easy to use. But I am really no xml-expert..... But maybe this will help you getting started:

http://www.jdom.org/index.html

the12huntersa at 2007-7-9 21:31:57 > top of Java-index,Desktop,Core GUI APIs...
# 2
My main problem is actually parsing the xml file,I dont know how to go about printing the data that is inside the file.Thanks for the reply
lc180a at 2007-7-9 21:31:57 > top of Java-index,Desktop,Core GUI APIs...