nerdexam
Zend

200-530 · Question #196

How can XML parsing errors be suppressed in the SimpleXML extension?

The correct answer is D. libxml_use_internal_errors(TRUE). See the full explanation below for the reasoning.

Question

How can XML parsing errors be suppressed in the SimpleXML extension?

Options

  • Aerror_reporting(E_ALL^E_NOTICE);
  • Bsimplexml_disable_errors(TRUE);
  • Csimplexml_ignore_errors(TRUE);
  • Dlibxml_use_internal_errors(TRUE);
  • Esimplexml_load_file("file.xml", LIBXML_NOERROR);

How the community answered

(48 responses)
  • A
    13% (6)
  • B
    8% (4)
  • C
    2% (1)
  • D
    75% (36)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice