I'm writing a small application in Java that uses XOM to output XHTML.
The problem is that XOM places the following tag before all the html:
<?xml version="1.0" encoding="UTF-8"?>
I am using xpath to read the xhtml document, i want to read the all elements inside the <p> tag of the xhtml file. For that i am doing something like ...