For a program I am writing, I access three files, and need to check three things:
(1) that file 'A' is an XML file
(2) that file 'B' is an XSLT file
(3) that file 'C' is an XML file with the specific root element 'bookdoc'
Please can someone tell me how I can do this? I have been struggling with DOM and the python minidom module with no results!