nerdexam
Adobe

9A0-127 · Question #51

What is the correct syntax for extracting an XML document from the XML object xmlObj in utf-16 format?

The correct answer is C. xmlDoc = toString(xmlObj, 'utf-16'). See the full explanation below for the reasoning.

Question

What is the correct syntax for extracting an XML document from the XML object xmlObj in utf-16 format?

Options

  • AxmlDoc = xmlObj.toString();
  • BxmlDoc = toString(xmlObj);
  • CxmlDoc = toString(xmlObj, 'utf-16');
  • DxmlDoc = xmlObj.toString('utf-16');

How the community answered

(37 responses)
  • A
    8% (3)
  • B
    3% (1)
  • C
    84% (31)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 9A0-127 Practice