Whic XB versions are you using?
There is JBossXBParser interface here
which is a SAX-like one. The only implementation is SAX-based.
Since, I guess, when you marshal DOMSource into a String you navigate through DOM
structures, you could generate the needed SAX-like events and they will be directly
processed by XB. That would be DOM-based implementation of JBossXBParser. I think it
shouldn't be a difficult task to do. Do you want to do this?
The problem with the current releases of XB is that there is actually no way to supply an
alternative impl of JBossXBParser. But also because of this JBossXBParser interface can be
reviewed and simplified safely since there have been only one implementation. So this one
is also easy to fix.
View the original post :
Reply to the post :