I'm not familiar with the scala XML library. Is there a simple way to find the DTD of a document ? From what I've seen so far, scala.xml.XML.load
only returns the Elem
(the XML content of the document) but not it's DTD. Is there another method to specifically do that?
Extra question: The same question for the XML declaration at the start of a document.