how to highlight formatted document compare in aspose java
org.jsoup.nodes.Document olddoc = null;
olddoc = Jsoup.parse(getStringFromInputStream(oldStream));
for (Element element : olddoc.select("p"))
{
Elements children = element.children();
for (Element child : children)
{
if (!child.hasAttr("class") && !child.hasText())
child.remove();
}
if (element.children().isEmpty() && !element.hasText())
element.remove();
}
String oldString = olddoc.toString();
we are changing the company font Calibri to Segoe but it’s not highlighted the font related like id = added-diff-0, id=“removed-diff-0”
oldString output
The company name is UNDEFINED_COMPANY_NAME_FLAGFLA kk