We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to highlight formatted document compare in aspose java

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())
				if (element.children().isEmpty() && !element.hasText())
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

@rabinintig Your code example does not use Aspose.Words. Could you please elaborate your requirements a bit more? Also please attach your input, output and expected output documents. We will investigate the issue and provide you more information.