![]() |
VOOZH | about |
DOM (document object model) is a cross-language API from W3C i.e. World Wide Web Consortium for accessing and modifying XML documents. Python enables you to parse XML files with the help of xml.dom.minidom, which is the minimal implementation of the DOM interface. It is simpler than the full DOM API and should be considered as smaller.
Steps for Parsing XML are -
import xml.dom.minidom
Let say, your XML files will have the following things,
👁 Imagedocs = xml.dom.minidom.parse("test.xml")
Output:
#document info
Output:
#document info 4 skills Machine learning Deep learning Python Bootstrap