StreamWriter xsw = new StreamWriter(“Customers.xml”);
xsw.Close();
You need to write the data to the custDS DataSet along with the schema.
Which option should you choose?
A.
xsw.Write(custDS.GetXml());
B.
xsw.Write(custDS.GetXmlSchema());
C.
custDS.WriteXml(xsw);
D.
custDS.WriteXml(xsw, XmlWriteMode.WriteSchema);
Explanation:
You need to write both the data along with the Xml Schema, therefore the answer choice must be D.