Jump to content

atisman

Members
  • Posts

    2
  • Joined

  • Last visited

atisman's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. 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.
  2. 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.
×
×
  • Create New...