I am using Document in Java to create XML and in the end I am doing toString() to get the xml as a String.
the problem is that the xml contains a url and all the & become &.
how to prevent it from happening and not using : myxml.replaceAll("&ammp";, "&");
posted 2 years ago
What is changing to what? The HTML tags seem to be interfering with your post. Don't post & but put the ‍ tag inside that tag. That is Zero Width Joiner, so you can write the tags and nobody will see the ZWJ.