On a related issue, I just released Beta 3a of my JiBX data binding framework (http://www.jibx.org). What makes it related is first off that JiBX uses an XMLPull parser (the open standard that's pretty much the basis for the event-level API in StAX), and secondly that this version includes support for using dom4j within the data binding. I just verified that my test cases still work with the new 1.5 beta 1 distribution of dom4j.

I'm planning to support StAX in JiBX when decent implementations become available. From what I've seen the current ones are still beta quality, unfortunately.

As for the dom4j support within the data binding, this uses custom marshaller/unmarshallers within the binding definition, so that you can designate which portions of your document are to be handled by using dom4j rather than data binding to your own objects. It's intended to give users who are basically working with data the ability to include islands of arbitrary XML within their data-bound documents. The unmarshaller is actually using a wrapped version of the XMLPull parser for input (wrapped mainly so that I can change to StAX in the future).

- Dennis

Christian Niles wrote:

I submitted two RFEs, one for reading, and another for writing. Each has my current code attached to it for review and feedback.

I've only really tested this against my own needs and uses, which aren't very wide-ranging. The next steps are probably to create some unit tests, and check to make sure that I'm properly generating the events according to the STAX spec.

christian.

On Mar 26, 2004, at 8:54 AM, Maarten Coene wrote:



Hi Christian,

this seems a good extension to me. Could you create a new RFE and submit your code there?
http://sourceforge.net/tracker/?group_id=16035&atid=366035


thanks!
Maarten

Christian Niles wrote:



While we're discussing a new version and features of dom4j, I wanted to ask if anyone else has been using the new StAX API, and whether there's been any activity on integrating the two.

I've written two classes, STAXReader and STAXWriter that respectively read and write DOM4J nodes from/to a StAX stream. If anyone else is interested, I wouldn't mind sending them out for review and comment. They're not ready for general production use, but they've worked well for my own needs. One area that I'm fairly sure needs attention is in properly handling DTD events.

best,
christian.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev







------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev




-- Dennis M. Sosnoski Enterprise Java, XML, and Web Services Training and Consulting http://www.sosnoski.com Redmond, WA 425.885.7197




------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to