I
iksrazal
I'm getting this error from Xerces - and I can't seem to get the right
xerces jar in place to fix it:
java.lang.NoSuchMethodError:
org.apache.xerces.util.NamespaceSupport.reset(Lorg/apache/xerces/util/SymbolTable;
My code - which some upgarde seemed to have broken:
public static final String getXml(Document document) throws
XMLHelperException
{
try
{
OutputFormat format = new OutputFormat(document);
StringWriter stringOut = new StringWriter();
XMLSerializer serial = new XMLSerializer( stringOut, format );
serial.asDOMSerializer();
serial.serialize(document.getDocumentElement());
return stringOut.toString();
}
catch(Exception e)
{
throw new XMLHelperException("XML Document to String Err", e);
}
}
Is there a JAXP - or some standard way - to do this?
iksrazal
xerces jar in place to fix it:
java.lang.NoSuchMethodError:
org.apache.xerces.util.NamespaceSupport.reset(Lorg/apache/xerces/util/SymbolTable;
My code - which some upgarde seemed to have broken:
public static final String getXml(Document document) throws
XMLHelperException
{
try
{
OutputFormat format = new OutputFormat(document);
StringWriter stringOut = new StringWriter();
XMLSerializer serial = new XMLSerializer( stringOut, format );
serial.asDOMSerializer();
serial.serialize(document.getDocumentElement());
return stringOut.toString();
}
catch(Exception e)
{
throw new XMLHelperException("XML Document to String Err", e);
}
}
Is there a JAXP - or some standard way - to do this?
iksrazal