Ok, two more questions, don't worry, the XML is the same...
um... if I know the fruit's name is "Rocky Mountain Pear" how can I get it's parent ("Pear")?
second, how can I get the names of all the fruits with the Color Green? I'm assuming i need to find the Color notations, remove all of the...
Hey, Thanks for the quick reply.
The Fruit XML keeps changing because I only use it as examples. The actual XML data I'm using is not edible ;)
Your script works well, except it's output is:
Apple,Pear,Crabapple
and I need
Southern Green Apple,Rocky Mountain Pear,Wild Crabapple
Thanks
Hello Again!
More issues with XML for your kind consideration.
my XML structure looks like this:
<food>
<Apple>
<name>Southern Green Apple</name>
<color>Green</color>
<taste>Good</taste>
<price>50</price>
</Apple>
<Pear>
<name>Rocky Mountain...
Hey Tsuji!
The code's working great. I've got it planted in my actual docs and it's working fine.
I was wondering if there was a straight forward way to add a variable into the xml data call. Something like:
var varZZZ = fruit;
document.getElementById("Fruit_adjective").innerHTML =...
Hi Again Tsuji,
I hope I can steal a bit more of your time. I need just one more bit of help at the moment.
I'm trying to use the xml data to fill out the innerHTML of divs in my document. I've tried all kinds of ways that have worked for me when I was using xml from inside my html doc. But it...
Hi Tsuji!
Thanks so much for your help. I never expected to get a reply so soon.
Unfortunately I'm still getting the same results as before (a blank page). Please, if you can, help me out. Thanks!
Here's what I have now:
@@@@@@@@@@@ a_page.html @@@@@@@@@@
<html>
<head>
<meta...
Hi Everyone!
I've been searching everywhere for a solution to my problem. It doesn't seem to be too complicated, but I just can't find it.
I have the following code:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.