atisman
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by atisman
-
-
Hi, this might sound a basic question but...Can the XML DOM object load an xml file in any arbitray URL? I have a Javascript that creates a DOM object and I'd like to use load function with a URL that indicates an XML file... For example, using Firefox......xmlDoc=document.implementation.createDocument("","",null);xmlDoc.load("http://www.w3schools.com/xml/xml_note.xml");...I'm running a WEBrick webserver in my local PC and running the script but it doesn't seem to work. But it can load any XML files in my local PC. Any explanation why this happens would be appreciated.Thank you.
XML DOM object load function
in JavaScript
Posted
Hi, this might sound a basic question but...Can the XML DOM object load an xml file in any arbitray URL? I have a Javascript that creates a DOM object and I'd like to use load function with a URL that indicates an XML file... For example, using Firefox......xmlDoc=document.implementation.createDocument("","",null);xmlDoc.load("http://www.w3schools.com/xml/xml_note.xml");...I'm running a WEBrick webserver in my local PC and running the script but it doesn't seem to work. But it can load any XML files in my local PC. Any explanation why this happens would be appreciated.Thank you.