Re: [jibx-users] Java<->DOM instead of Java<->xml stream

2005-07-24 Thread Andreas Brenk
Hi Nikita, the code will also be a part of the next official JiBX release and is already in JiBX CVS. You should check it out from there as there were some refactorings to use a common super class. For usage instructions you have to read the test cases at the moment. But I hope to finish som

Re: [jibx-users] Java<->DOM instead of Java<->xml stream

2005-07-21 Thread Dennis Sosnoski
Yes, that's what would be needed. I did some quick searches, thinking somebody would have done this already for one of the document models with XMLPull or StAX (which is basically a designed-by-committee version of XMLPull), but didn't find anything. Still, it's a simple enough API that it shou

Re[2]: [jibx-users] Java<->DOM instead of Java<->xml stream

2005-07-21 Thread Nikita
Hello Dennis, I would like to try. Now it seems I have to implement XmlPullParser that reads JDOM and add method IUnmarshallingContext.setParser(XmlPullParser newParser) Right? Thursday, July 21, 2005, 10:38:14 AM, you wrote: DS> The way to handle this would be to create a wrapper that p

Re: [jibx-users] Java<->DOM instead of Java<->xml stream

2005-07-21 Thread Dennis Sosnoski
The way to handle this would be to create a wrapper that provides an XMLPull parser interface for reading a DOM, then use that like a parser. I haven't checked to see if there's an implementation of this already available, but if not it shouldn't be too difficult to create it if you understand

Re[2]: [jibx-users] Java<->DOM instead of Java<->xml stream

2005-07-20 Thread Nikita
xtras package. MH> Mocky MH> -Original Message- MH> From: [EMAIL PROTECTED] MH> [mailto:[EMAIL PROTECTED] On Behalf Of Andreas MH> Brenk MH> Sent: Wednesday, July 20, 2005 9:58 AM MH> To: jibx-users@lists.sourceforge.net MH> Subject: Re: [jibx-users] Java<->

Re[2]: [jibx-users] Java<->DOM instead of Java<->xml stream

2005-07-20 Thread Nikita
Hello Andreas, That would be great if you send this. But it solves only a half of the problem. There is no interface called like IXMLReader for unmarshalling from different xml sources. Code is very coupled with pull parser. It seems I can only convert my DOM representation into text and give it

RE: [jibx-users] Java<->DOM instead of Java<->xml stream

2005-07-20 Thread Mocky Habeeb
: Re: [jibx-users] Java<->DOM instead of Java<->xml stream Hi Nikita, it is possible with a custom implementation of the IXMLWriter interface. I've written one that marshalls into a JDOM Document and officially contributed it. It is not yet integrated into the main distribution th

Re: [jibx-users] Java<->DOM instead of Java<->xml stream

2005-07-20 Thread Andreas Brenk
Hi Nikita, it is possible with a custom implementation of the IXMLWriter interface. I've written one that marshalls into a JDOM Document and officially contributed it. It is not yet integrated into the main distribution though. If you need it right away I could send you a recent CVS checkout with

[jibx-users] Java<->DOM instead of Java<->xml stream

2005-07-20 Thread Nikita
Hello jibx-users, Is that possible to map java objects to tree structures like DOM and others? I need it to convert java objects into custom binary xml format and I don't want to do superfluous xml parsing. -- Nikita --- SF.Net