I am creating an XML document in memory. When it gets to the following code:
DOMImplementation impl = builder.getDOMImplementati
// create the root element
org.w3c.dom.Document doc = impl.createDocument(null, null, null);
it throws the following error:
org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
I have looked on the net and apparently there is an issue with passing null, null, null - for example here:
However, it doesn't say how to correct the issue. Any help please? :-)