I ran into a few questions on StackOverflow that asked about parsing html with xpath using Java.
This is the best answer I found so far here.
But it looks like DomSerializer is no longer available in Java 11.
How can I use DomSerializer in Java 11 ?