INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Read XML into HTML5

Read XML into HTML5

(OP)
Hi all - I think I'm going insane!
All I wanted to do was read an XML file into HTML so I could use it to store info - I've done this in a flash/actionscript app and it was all fine. Now I'm trying to do it to HTML and multi-fail!

I've googled lots of sites and tried various things but I keep getting "null" when I try to spit out the xmlDoc I've loaded.
On this site
http://www.w3schools.com/xml/tryit.asp?filename=tr...
if I add the line
document.write(xmlDoc);
after the line
xmlDoc=xmlhttp.responseXML;
I get
[object Document]
but even copying that page contents and XML file to my own server and running it I still just get "null".
I'm about ready to jump out the window, so I'm hoping someone can find me a working load method (then I can worry about all the parsing, next). I haven't tried jquery methods yet as I've yet to use jquery.

_________________________________
Leozack

CODE

MakeUniverse($infinity,1,42); 

RE: Read XML into HTML5

Hi

Then you have to debug the AJAX part. First check if your server
  • sends the XML data
  • sends text/xml HTTP response header

Feherke.
feherke.ga

RE: Read XML into HTML5

(OP)
I'm not familiar with AJAX really. I was hoping to just follow a tutorial for the basic loading!
How can I check what you're asking precisely?

_________________________________
Leozack

CODE

MakeUniverse($infinity,1,42); 

RE: Read XML into HTML5

Hi

Use your browser's web developer tools, either the built-in one or an addon like FireBug for FireFox or DragonFly for Opera. Those will display information about the AJAX request either in the Console and/or the Net tab.

Feherke.
feherke.ga

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close