I've been using dom4j for a long while and I like it a lot. But, lately, I've sort of been forced to use XOM/NUX/Saxon for a special feature and I don't really like that. So the question is if I can do the same with DOM4J.

I want:
To specify a simple xpath-like expression (nothing fancy, don't even require any kind of predicates (although it could be nice to have) and the only needed axis is the child axis) and feed into a streaming parser and when it hits a node matching the expression it calls a callback interface with a node for the match. That is, if the match is an element with a lot of content, the callback will be fed a dom4j element with all contents. This way I can parse large documents without having it all in memory (some parts may never be matched at all (although still parsed I guess)) while still using dom4j in a pretty "normal" way.

Is this possible? I'm open to do some coding to make it happen if someone can give some good pointers.

Thanks,

/Marcus



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to