Hi Mats
A quick question - is there any reason why you
can't use SAXReader to load your document? Is it something to do with Cocoon2
why you're trying to use SAXContentHandler directly?
If you want to use SAXContentHandler directly, I'd
take a look at the code of SAXReader, in particular the configureReader()
method. The SAXContentHandler also implements the LexicalHandler API from SAX
which is used to get notified of comments.
1. You're probably not registering SAXContentHandler as the
LexicalHandler for the SAX XMLReader
2. startPrefixMapping is a namespace thing - e.g. xmlns:page="..."
is the start of a prefix mapping.
3. Not at all :-)
James
|
- [dom4j-dev] Is there a bug in the SAXContentHandler or the ... Mats Norén
- James Strachan