Hi Paul,
these default attribute values are specified in the XHTML DTD. When
parsing your file, dom4j uses a SAX parser. It's that SAX parsers that
passes the attribute values to dom4j (including the attribute with
default values as specified in the DTD). So this is hard to solve at the
dom4j l
I'm parsing a text file containing an XHTML document into a Document
object, finding a fragment via XPath, then doing a regular expression
search on the fragment as textual XML. I'm finding that the XML text
rendered from the XMLWriter via asXML() is not consistent with the input
document.
For ex