This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have built this XML using JDOM and I convert this to a string and again pass it to JDOM using the code below
SAXBuilder builder = new SAXBuilder(); org.jdom.Document jDomObj = builder.build(psXML); And it throws that Exception after this line... Pls reply urgently pls Note-- am not using any DTD Thx
Joined: Dec 02, 2000
I conver that XML into a string like this StringBuffer loStringBuffer = new StringBuffer(); loStringBuffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); loStringBuffer.append(xmlOutputter.outputString(eleM));
Where eleM is my root element( which is MassC) Thx
Joined: Jan 23, 2002
Your problem is that you're trying to pass the XML document as a string into a method of which signature is build(java.lang.StringsystemId) and that causes the exception. In other words, you need to doinstead of