p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: Type mismatch


Message #1 by "Santosh" <s_k_panda@h...> on Wed, 26 Sep 2001 13:55:30
Hello,
I have written some XML code from wrox book (ASP 3.0) but while saving the 
recordset data in response or DOM object, it is showing error i.e. type 
mis match.If anybody has solution to this please mail me.

The code is as follows:

<XML id="dsoPublishers">
<%
  Dim rsData
  Dim domXML
  Dim strXML

  Set rsData = Server.CreateObject("ADODB.Recordset")
  Set domXML = Server.CreateObject("Microsoft.XMLDOM")


  rsData.Open "publishers", strConn
  rsData.Save domXML, adPersistXML
  'rsData.Save Response, adPersistXML
  rsData.Close

  strXML = domXML.xml
  strXML = "<xxx" & mid(strXML, 5, Len(strXML) - 10) & "xxx>"

  Response.Write strXML

  Set rsData = Nothing
  Set domXML = Nothing

%>
</XML>
 
error is Type mismatch "save"!!

Please Help
-santosh

  Return to Index