S
Simeon Lobo
Hello All,
I have an ASP.NET web form that retrieves data from a SQL
Server stored proc containing a "FOR XML AUTO, XMLDATA".
The following is a snippet I use to convert the dataset to
XML;
'-- Start ---
ds.ReadXml(dr, XmlReadMode.Fragment)
Response.ContentType = "text/xml"
Response.Write(ds.GetXml)
'-- End ---
When the XML data is returned, it is formatted as;
<Schema1>
....
....
....
</Schema>
I was wondering if anyone could give me some ideas as to
replacing <Schema1> with a parent node of my choice. I
would also like to include a namespace declaration within
this parent node.
I would appreciate any ideas...thanks....
Simeon
I have an ASP.NET web form that retrieves data from a SQL
Server stored proc containing a "FOR XML AUTO, XMLDATA".
The following is a snippet I use to convert the dataset to
XML;
'-- Start ---
ds.ReadXml(dr, XmlReadMode.Fragment)
Response.ContentType = "text/xml"
Response.Write(ds.GetXml)
'-- End ---
When the XML data is returned, it is formatted as;
<Schema1>
....
....
....
</Schema>
I was wondering if anyone could give me some ideas as to
replacing <Schema1> with a parent node of my choice. I
would also like to include a namespace declaration within
this parent node.
I would appreciate any ideas...thanks....
Simeon