hunterhacker/jdom — Issue #63: Improve check for XML content in SAXBuilder.build(String)
Author: rolfl
Created: 2012-02-11 22:51:05+00:00
State: open

This method takes a SystemID (URI) as a parameter, but many JDOM users (indeed, DOM has the same problem) think that the String is an XML document, not a reference to a document.

The actual exception thrown when you give this method XML content (instead of a reference) is hard to understand, especially for people who are unfamiliar with SAX.

This issue can be easily resolved by throwing a more meaningful/Descriptive exception.