Displaying the XML Doc in ASP

Results 1 to 2 of 2

Thread: Displaying the XML Doc in ASP

  1. #1
    Join Date
    Dec 1969

    Default Displaying the XML Doc in ASP

    &#060;%<BR>&#039;make a variant object<BR>Dim xmlDoc<BR><BR>&#039;place the DOMDocument into the xmlDoc object<BR>Set xmlDoc = Server.CreateObject("MSXML.DOMDocument")<BR><BR>&# 039;load the XML document object here<BR>xmlDoc.load "cosyne.xml"<BR><BR>&#039;set the content type to XML - note other types are supported<BR>Response.contenttype = "text/xml"<BR><BR>&#039;now send back the DOMDocument you have loaded above<BR>response.write xmlDoc<BR>%&#062;<BR><BR>I am getting this error<BR>Error Type:<BR>Response object, ASP 0185 (0x80020003)<BR>A default property was not found for the object.<BR>/cosyne/XML/testXML.asp<BR><BR>Any Ideas of why I am getting this error.<BR>Thanks in Advance<BR>Venky<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Displaying the XML Doc in ASP

    response.write xmlDoc <BR><BR>You&#039;re trying to write out an object. I&#039;m pretty sure you can&#039;t do that. There&#039;s a method or property you need to invoke there pard.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts