Coffeehouse Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

MSXML and DTD's

Back to Forum: Coffeehouse
  • User profile image
    RamarC

    I'm trying to deploy a simple (classic) ASP app on a hosted server and can't seem to get MSXML to stop looking for the XHTML DTD.   

    var doc = new ActiveXObject( "MSXML2.FreeThreadedDOMDocument" );
    doc.async = false;
    doc.validateOnParse = false;
    doc.load( path );


    Even with validation turned off, doc.load( path ) causes the script to time out because the system cannot locate the XHTML DTD.  Setting doc.resolveExternals to false is not a solution since any entity reference (i.e.:  ) will provoke a parse error.

  • User profile image
    RamarC

    I've corrected the behavior but still wonder if there's a different solution.  Apparently, the hosted server's MSXML version differs from mine and I needed to doc.setProperty( "ServerHTTPRequest", true ). 

    Still, I would prefer that the document just be checked to ensure it is well formed (especially since I've turned off .validateOnParse).  Is there anyway to ignore the DTD and still have entity definitions ( ) not provoke a parse error?

  • User profile image
    jamie

    <off topic>  speaking of errors... this made me laugh this morning:

    http://news.softpedia.com/news/Windows-Error-Message-Tells-Microsoft-to-F-k-Off-64248.shtml

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.