Certified Professional in Python Programming (PCPP-32-101) — Question 21

Select the true statements about XML modules in the Python standard library. (Choose two.)

Answer options

Correct answer: B, D

Explanation

Option B is correct because SAX indeed serves as an interface for processing XML in an event-driven way. Option D is also correct as both xml.etree.ElementTree and xml.dom.minidom are used to parse XML documents into a DOM structure. Options A and C are incorrect; while A is true, it is not one of the selected answers, and C is wrong because the xml.sax module does not implement DOM, which is a different approach.