Suppose I have a bunch of .xmls which use a tag scheme defined in my own custom .DTD file.
How could I use BeautifulSoup4 to validate that a given .xml conforms to a given custom .DTD file (i.e. it doesn't have tags not defined in that .DTD)? In particular I am using a BeautifulSoup
class object, which takes a file
as an argument and then parses the XML accordingly.
I have looked at these resources but they don't address how to directly solve this problem:
No comments:
Post a Comment