Jump to content

Archived

This topic is now archived and is closed to further replies.

kunchokz

getElementByTagName

Recommended Posts

[!--fonto:Verdana--][span style=\"font-family:Verdana\"][!--/fonto--]I have an xml file and a php file.
How can I retrieve the values inside the xml tag, in the xml file from the php file using getElementTagName of javascript? [!--fontc--][/span][!--/fontc--]

Share this post


Link to post
Share on other sites
[a href=\"http://www.phpfreaks.com/tutorials/44/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/44/0.php[/a]

Share this post


Link to post
Share on other sites
If you really wanted to use JS i suppose you might be able to have the XML file in a iFrame and use JS to extract via TagNames from the iFrame and transfer it to the document on load

Not the most ideal way

Share this post


Link to post
Share on other sites
I used the code of xml parser. It works fine with ie 6.0 and mozilla 1.0.7 if i have to fetch the data within the top level nodes. But I cannot fetch the data within the child nodes in mozilla. And the code doesnot work with opera 8.52

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.