[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problems with XML from ASP.


error loading xml document
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.

Cheers
Simon

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.