nerdexam
National_Instruments

200-500 · Question #181

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

(24 responses)
  • A
    4% (1)
  • B
    8% (2)
  • D
    71% (17)
  • E
    17% (4)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice