Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml to text file

Status
Not open for further replies.

Andy6666uk

Programmer
Jul 11, 2001
17
GB
I want to save an XML file made from a recordset.

The code below makes a text file but the format is anything but XML, it comes out looking like a mess.

Any ideas what I'm doing wrong?
<%
Set rsPerson = Server.CreateObject(&quot;ADODB.Recordset&quot;)
rsPerson.Open &quot;Person&quot;, db

Dim SourceFile, strSource
SourceFile = &quot;textfiles/text001.xml&quot;
strSource = Server.MapPath(SourceFile)

rsPerson.Save strSource, adPersistXML

rsPerson.Close
%>
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top