Answers

Question and Answer:

  Home  MCSD.NET - 70-320 Exam

⟩ Suppose Company Ltd. receives product information from manufactures in the form of an XML documents.The product information is stored in a Microsoft SQL Server database. The format of each XMLdocument varies. Each one is located in a MemoryStream object named newProds. You create amerge procedure that reads data and schema information in a Dataset object and merges theinformation into your database. You now need to write code to transfer the XML document and itsschema into a Dataset object.Which code segment should you use?A. Dataset products = new Dataset("prodInfo");XmlTextReader reader = new XmlTextReader(newProds);XmlValidatingReader validReader = newXmlValidatingReader(reader);while (validReader.Read()) { products.WriteXml(validReader.Value);}B. Dataset products = new Dataset("prodInfo");products.ReadXml(newProds);C. Dataset products = new Dataset("prodInfo");XmlDataDocument document = new XmlDataDocument(products);D. document.DataSet.ReadXmlSchema(ne

B. Dataset products = new Dataset("prodInfo");

products.ReadXml(newProds);

 189 views

More Questions for you: