Hi,
Is there not a way to specify that a DataSet should Preserve the XML Declaration when calling DataSet.GetXml ?
I am using the DataSet only to Merge 2 XML strings.
After I merge the 2 dataSets, I then Call ds.GetXml to return the XML string with all the records merged into it.
I then pass that XML string as a param to a SQLXML sproc.
The only problem is that the proc always returns an empty node because it requires the XML Declaration, which the DataSet strips out when you call the GetXml method.
Anyone have a workaround?
Thanks.
Is there not a way to specify that a DataSet should Preserve the XML Declaration when calling DataSet.GetXml ?
I am using the DataSet only to Merge 2 XML strings.
After I merge the 2 dataSets, I then Call ds.GetXml to return the XML string with all the records merged into it.
I then pass that XML string as a param to a SQLXML sproc.
The only problem is that the proc always returns an empty node because it requires the XML Declaration, which the DataSet strips out when you call the GetXml method.
Anyone have a workaround?
Thanks.