nerdexam
Microsoft

98-372 · Question #117

How is an XmlWriter object useful when writing XML data to XML documents? Each correct answer represents a complete solution. Choose all that apply.

The correct answer is B. It ensures that an XML document is well-formed. C. It allows XML values to be passed as parameters by using CLR types instead of using strings. D. It ensures that XML characters are legal and contains valid element and attribute names. The XmlWriter class is used to create streams and write data to XML documents. An XmlWriter object of the class is useful when writing an XML data to XML documents in the following manner: An XmlWriter object ensures that XML characters are legal and contains valid element and…

Understanding .NET Framework Concepts

Question

How is an XmlWriter object useful when writing XML data to XML documents? Each correct answer represents a complete solution. Choose all that apply.

Options

  • AIt ensures that XML data is represented in file format.
  • BIt ensures that an XML document is well-formed.
  • CIt allows XML values to be passed as parameters by using CLR types instead of using strings.
  • DIt ensures that XML characters are legal and contains valid element and attribute names.

How the community answered

(45 responses)
  • A
    24% (11)
  • B
    76% (34)

Explanation

The XmlWriter class is used to create streams and write data to XML documents. An XmlWriter object of the class is useful when writing an XML data to XML documents in the following manner: An XmlWriter object ensures that XML characters are legal and contains valid element and attribute names. It ensures that an XML document is well-formed. It allows encoding of binary data into bytes such as Base64 or BinHex, and writing the resulting It allows XML values to be passed as parameters by using CLR types instead of using strings. This avoids value conversions manually. It allows multiple XML documents to be written to one output stream.

Topics

#XmlWriter#XML#well-formed XML#CLR types

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice