Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading URL in XML

Status
Not open for further replies.

Saviour

Programmer
Feb 6, 2001
7
0
0
VE
Hi,

I cannot manage to make the load method works with a http URL. But it works well with local file (c:\etc...)

I need to work with a http URL ("//http:/luthiers/...xml").

How can I do that?

Thanks for any help.
 
HELLLLLLLLLLLLLLP!


yes but I am using the following code...and its not working

WHY!?

I am using the correct url format and everything

all its supposed to do is open note.xml and write it back out to /fpdb/chris.xml

how hard is that?

<script language=&quot;VBScript&quot; RUNAT=&quot;Server&quot;>
set xmlDoc=Server.CreateObject(&quot;Microsoft.XMLDOM&quot;)
xmlDoc.async=false
xmlDoc.load(&quot;xmlDoc.save(server.mappath(&quot;/fpdb/chris.xml&quot;))
'set x=xmlDoc.getElementsByTagName(&quot;NetFreightCharges&quot;)
'a=x.item(0).text
'document.write(a)
</script>

Chris
 
Because the movie has to come from the URL you are trying to access.. Flash movies can only &quot;phone home&quot;... you can only talk back to the site you came from... This is a security feature to prevent flash virus mayhem..
 
Shouldn't you be creating an instance of your DOMDocument like this?

Set XMLDoc = Server.CreateObject(&quot;MSXML2.DOMDocument&quot;)

(assuming you're using the XML 3.0 parser, available at
Chip H.
 
Bisidex: I am trying to do the same thing that you are, eg

objDOM.Load(&quot;
I get the error 'The system cannot locate the resource specified'.

objDOM.Load(&quot;c:\temp\file.xml&quot;) works fine.

Did you ever have any luck? Or did you have to save it locally before Loading the file? Other developers have said they can do it, but I can't so obviously feel like a doofus... Miles
busymiles@lan-house.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top