javascript xml question

Joined
Mar 12, 2009
Messages
1
Reaction score
0
Let me try get this right as im only learning javascript...

I am loading an xml file from a server to my variable I then use
x.getElementsByTagName("coutryFlag");
and then return the variable, using document.write to display it...

all the code is working, what i want to know is how to display an image, the url to that image is in one of the nodes called "countryFlag."

Also, I havent found any information on how to return only the nodes that i want to display, any help or a link on the subject would be greatly apreciated

Thanks in advance N.D.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top