Re: [dom4j-user] Default attributes rendered from DOM

2004-06-10 Thread Maarten Coene
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

[dom4j-user] Default attributes rendered from DOM

2004-06-09 Thread Kaiser, Paul
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