Forum Moderators: open

Message Too Old, No Replies

Safari Javascript XML Problem

Safari can't load the W3 example

         

jamesuk

6:48 pm on Aug 2, 2006 (gmt 0)

10+ Year Member



Hey, I want to parse some XML using javascript and found this [w3schools.com] example of how it should be done on w3schools.

It works great on Firefox, Opera etc. but when I try on Safari it returns the error:

'TypeError - Value undefined (result of expression xmlDoc.load) is not object.'

This is the example page with code [w3schools.com]

Does anyone know why this is happening? Can it be altered to work with Safari as well because I really need a fully cross platform javascript xml parser?

Thanks

whoisgregg

10:20 pm on Aug 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That test page functions for me as expected with no errors. Safari Version 2.0.4 (419.3), Mac OS X 10.4.7

In which version of Safari does it fail?