Re: [jibx-users] Basic New User Questions

2005-03-21 Thread Dennis Sosnoski
This idea of skipping unrecognized elements is a common concern. There's unfortunately no way to do this in the current code, but it's another issue that will be part of the code generation restructuring for 2.0. Using the UnmarshallingContext from your own top-level code you can call ctx.getUn

Re: [jibx-users] Basic New User Questions

2005-03-21 Thread Chris Chen
I actually don't mind jibx taking control over the entire stream. In fact, my vision is to have JiBX become the main underlying parser for ALL incoming XML fragment. All I want is an automated way to turn incoming XML fragment into Java objects. That does pose a problem though. If Dennis can

Re: [jibx-users] Basic New User Questions

2005-03-21 Thread Dennis Sosnoski
There are some major issues in passing the input stream around, since the parser is going to buffer data (which means it reads more than it actually consumes). A better solution for this type of requirement is to just use an org.jibx.runtime.impl.UnmarshallerContext directly. This internally w

RE: [jibx-users] Basic New User Questions

2005-03-21 Thread Davies, Joshua
rge.net Subject: [jibx-users] Basic New User Questions Hi, I have yet to entirely look into the source code of JiBX. But I am wondering about a few things that maybe you can quickly answer for me. I would like parse a streaming XML content over a socket. When I peek into the tag to determine what t

Re: [jibx-users] Basic New User Questions

2005-03-19 Thread Chris Hill
Haha, that is pretty funny! Well, my original implementation used yaja and dom4j, but I ended up spending a lot of time using dom4j to convert my jabber objects into useful bits, and boy was it a waste of time and processing. I gutted yaja's dom4j transformer and created a jibx transformer inst

Re: [jibx-users] Basic New User Questions

2005-03-19 Thread Chris Chen
Thanks for the quick reply. Funny thing is that what I'm trying to do is parse jabber streams! :) My current implementation works with SAX. However, I was contemplating the fact where I can create a new framework that allows near-zero parsing code. So what I would do is simply create a normal

Re: [jibx-users] Basic New User Questions

2005-03-19 Thread Chris Hill
Hi Chris, I would like parse a streaming XML content over a socket. When I peek into the tag to determine what type of XML fragment it is, I would then pass the stream over to JiBX to map the xml data into my java object. After jibx parses the data, my stream would continue to parse the next

[jibx-users] Basic New User Questions

2005-03-19 Thread Chris Chen
Hi, I have yet to entirely look into the source code of JiBX. But I am wondering about a few things that maybe you can quickly answer for me. I would like parse a streaming XML content over a socket. When I peek into the tag to determine what type of XML fragment it is, I would then pass the