Easy XML question

Results 1 to 5 of 5

Thread: Easy XML question

  1. #1
    Jason Guest

    Default Easy XML question

    I am saving a recordset to an xml string. How do I display the xml string in the browser?<BR><BR>&#060;%<BR> Set rs = server.CreateObject("ADODB.Recordset")<BR> sql = "Select * From Employees"<BR> rs.Open sql, objconn<BR><BR> Const adPersistXML = 1<BR> Dim myXML<BR> Set myXML = Server.CreateObject("Microsoft.XMLDOM")<BR> rs.Save myXML, adPersistXML <BR> &#039;Print my XML string????<BR>%&#062;

  2. #2
    Join Date
    Dec 1969

    Default RE: Easy XML question

    Try this line:<BR><BR>response.write myXML.xml

  3. #3
    Jason Guest

    Default RE: Easy XML question

    Tried that already and the page is blank.

  4. #4
    petr4000 Guest

    Default RE: Easy XML question

    looks like the browser is having trouble with the xml tags - if it&#039;s ok to put the xml browser in a textarea, you could just response.write the xml string between the textarea tags

  5. #5
    Jason Guest

    Default RE: Easy XML question

    That worked - any idea why the browser can&#039;t display it?

Posting Permissions

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