XmlTextWriter xtw = new XmlTextWriter("yourfilename", System.Text.Encoding.GetEncoding("GB2312"));xtw.Formatting = Formatting.Indented;
xtw.WriteStartDocument();YourDataSet.WriteXml(xtw);xtw.WriteEndDocument();
xtw.Close();
xtw.WriteStartDocument();YourDataSet.WriteXml(xtw);xtw.WriteEndDocument();
xtw.Close();
xtw.WriteStartDocument();xtw.WriteProcessingInstruction("xml-stylesheet", "type='text/xsl' href='1.xsl'");