hi,
i have code (PullParser2 and XPP3) that relies on start/endPrefixMapping
and to be backward compatible i want to keep it.
however based on reading of release notes
(http://xml.apache.org/xerces2-j/releases.html) i am not sure if in
future those call may not be used (as they are now deprecated ...)
what is the best strategy to deal with it? for example should i call
start/endPrefixMapping manually from start/endElement but how can i
detect that in future Xerces2 XNI will or will not call for me
start/endPrefixMapping? how to detect what version of XNI will use
require use of NamespaceContext in future (and will not call my
start/endPrefixMapping)? was NamespaceContext class available in all
versions of Xerces2 (i have never used it before) - if not how i can
write/implement XMLDocumentHandler that will have method with
NamespaceContext so it will fail to work with old X2 (should i maybe
make a copy of org.apache.xerces.xni.NamespaceContext and bundle it with
XPP2/XPP3 code?)
it is possible at all to have backward compatibility with older Xerces 2
(older versions of X2 are still used in many projects) or i should just
give up on it and after checking X2 verion fail fast by throwing
exception to user?
i will appreciate any info regarding this issue.
thanks,
alek
--
The ancestor of every action is a thought. - Ralph Waldo Emerson
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: XNI: best startegy to move from start/endPrefixMa... Aleksander Slominski
