Click to See Complete Forum and Search --> : XMLDOM prb in ASP when retreiving an XML file


Stéphane TRAUMAT
08-16-2000, 09:11 AM
Hello

On my site (let's call it A), i try to retreive an XML file from another
site (call it B) and apply
to this XML file an XLS style sheet to display the data in HTML on my web
site.

so i try to do something like that :

set doc = Server.CreateObject("Microsoft.XMLDOM")
doc.load("www.b.com/news.xml")
It doesn't work, i always get an error...
// and then apply the xsl style sheet

so i dowloaded news.xml from b.com and i put it on my web site www.a.com
if i do now something like :
set doc = Server.CreateObject("Microsoft.XMLDOM")
doc.load(Server.mapPath("news.xmls")
// and then apply the xsl style sheet

it works !

so i guess the prb comes from loading an XML file from another web site with
the XMLDOM object.
I read microsoft documentation and it's written that the load function can
take an URL. so where is the prb ??

if it's not possible to use the load function, is it possible in ASP to
retrieve
a file from an URL and use/save it on another server ?

Thanks
Stéphane

Eugene
08-29-2000, 05:02 AM
Hi Stephane,

I am experiencing exactly the same problem. Strangely enough, exactly the
same code works in VB. I have not been able to find the reason so far.

Regards,
Eugene



"Stéphane TRAUMAT" <stephane.traumat@amenti.org> wrote:
>Hello
>
>On my site (let's call it A), i try to retreive an XML file from another
>site (call it B) and apply
>to this XML file an XLS style sheet to display the data in HTML on my web
>site.
>
>so i try to do something like that :
>
>set doc = Server.CreateObject("Microsoft.XMLDOM")
>doc.load("www.b.com/news.xml")
>It doesn't work, i always get an error...
>// and then apply the xsl style sheet
>
>so i dowloaded news.xml from b.com and i put it on my web site www.a.com
>if i do now something like :
>set doc = Server.CreateObject("Microsoft.XMLDOM")
>doc.load(Server.mapPath("news.xmls")
>// and then apply the xsl style sheet
>
>it works !
>
>so i guess the prb comes from loading an XML file from another web site
with
>the XMLDOM object.
>I read microsoft documentation and it's written that the load function can
>take an URL. so where is the prb ??
>
>if it's not possible to use the load function, is it possible in ASP to
>retrieve
>a file from an URL and use/save it on another server ?
>
>Thanks
>Stéphane
>
>
>
>
>
>
>
>
>