SyntaxFix
Write A Post
Hire A Developer
Questions
Try instead of db.parse(xml):
db.parse(xml)
Document doc = db.parse(new InputSource(new StringReader(**xml**)));