OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xml-dev] Problems with XML from ASP.

On Mon, 26 Nov 2001 16:12:33 -0800, in xml you wrote:

>I'm trying to use the MSXML 4 DOMDocument, but for some reason, it doesn't
>like the XML from my ASP. When I load a page of sample data w/ either a .xml
>or .asp extension, everything works fine. But, when I add any ASP statements
>(even a comment like this: <% 'this is asp %>) to the .asp page, the XML
>parser chokes and gives the following error:
>Error loading XML Document :
>Error Code : -1072896764
>Reason : A name was started with an invalid character.
>The generated XML page looks fine in the browser, but when I load it in
>another page using the DOMDocument object with the following code:
>xmldoc.load server.mapPath("mypage.asp"), I get the error. Does anyone have
>any idea what's going on here? Thanks, Byron.

You're going straight to disk, so loading the raw ASP file, if you
want to parse the results of the ASP file, then you'll need to hit it
via an HTTP url.