Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Improve check for XML content in SAXBuilder.build(String) #63

Closed
rolfl opened this Issue Feb 11, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Collaborator

rolfl commented Feb 11, 2012

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.

@rolfl rolfl closed this in 8835159 Feb 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment