Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: How to retrieve XML CDATA text contents by org.xml.sax.ext.DefaultHandler2? [Thread Next] Re: How to retrieve XML CDATA text contents by org.xml.sax.ext.DefaultHandler2?To: NULL Date: 5/4/2009 11:05:00 AM In article <gtmr70$e6j$1@n...>, Lew <noone@l...> wrote: > Stanimir Stamenkov wrote: > > You need to set the "lexical-handler" [1] property of the parser > > with the reference to your handler in addition to setting it as a > > 'contentHandler': > > Are you sure about that? I was surprised to see that the default value of lexical-handler is unspecified [1]. On closer reading, I see that the LexicalHandler interface is optional [2]. The API suggests setting the property and handling any SAXNotRecognizedException to determine if the feature is implemented. [1]<http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html> [2]<http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
