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)- A13% (6)
- B8% (4)
- C2% (1)
- D75% (36)
- E2% (1)
Community Discussion
No community discussion yet for this question.