You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Paul Libbrecht <pa...@activemath.org> on 2006/09/20 22:06:04 UTC
[jelly] stream of XML fragments ?
Hello,
since a while I'm considering the implementation of a reader for
log-like file formats, that is, for files that are xml up to a header
and footer. We use these in our ActiveMath system, typically, as log
files, where each new log entry is output as a new element.
<loglike:parse url="a.xml" var="iterator">
<loglike:header><![CDATA[<!DOCTYPE root SYSTEM "../dtd/xx.dtd">
<root>]]></loglike:header>
<loglike:footer><![CDATA[</root>]]></loglike:footer>
</loglike:parse>
<j:forEach items="${iterator}" var="elt">
<!-- do someting with ${elt} which would be a dom4j.Element probably -->
</j:forEach>
Would anyone else take advantage of such parsing tags ?
It has the strong advantage of being streamed (these log files are
easily enormous) and still let jelly's ease of xml manipulations and
filtering.
paul