You are developing an application to monitor store inventory. When inventory falls below a specified level, the application automatically generates a purchase request. Suppliers have requested that you transmit purchase requests to them in an XML document. Suppliers will accept the XML document in any valid form, except they do not want the data set definition to be
included in the XML file.
You create a method named GeneratePurchaseRequest. You write the code to populate a DataSet object named myDataSet with the purchase request data. You define a variable named fileName that contains the name and path of the output file.
You need to create an XML file from the data in myDataSet by adding code to GeneratePurchaseRequest. You want to accomplish this task by writing the minimum amount of code.
Which code segment should you use?
A.
myDataSet.WriteXML(fileName, XmlWriteMode.IgnoreSchema);
B.
myDataSet.WriteXML(fileName, XmlWriteMode.WriteSchema);
C.
myDataSet.WriteXMLSchema(filename);
D.
TextWriter myWriter = new StreamWriter(fileName);
myDataSet.WriteXMLSchema(myWriter);
The time to study or go to the content material or web-sites we have linked to beneath.