Sorry, I had to turn off HTML processing for that post because it was mangling the xsl. Or was that what you meant?
Also, to insure well-formed XML, I probably should have written that middle snippet like so (in VB.Net this time):
\nDim writer As New XmlTextWriter(outputStream)\n\nwriter.Formatting = Formatting.Indented\n\nwriter.WriteStartElement("recordset")\n\nForeach record in recordset\n writer.WriteStartElement("record")\n writer.WriteElementString("field1", XmlConvert.ToString(field1))\n writer.WriteElementString("field2", XmlConvert.ToString(field2))\n writer.writeEndElement()\nNext\n\nwriter.WriteEndElement()\nwriter.Close()\n
Much cleaner.
8)