[jboss-dev-forums] [JBoss XML Binding Development] - Re: JBXB-100
alex.loubyansky@jboss.com
do-not-reply at jboss.com
Sat Dec 12 05:52:46 EST 2009
Whic XB versions are you using?
There is JBossXBParser interface here http://anonsvn.jboss.org/repos/common/jbossxb/trunk/src/main/java/org/jboss/xb/binding/parser/
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 : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270330#4270330
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270330
More information about the jboss-dev-forums
mailing list