<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>RE: [jdom-interest] Code request</TITLE>
</HEAD>
<BODY>
<BR>
<P><FONT SIZE=2>Yes, I have something that works. It returns a JDOM Element to your callback for any element names that you register. If the elements you register make up the bulk of your XML document (i.e. large numbers of repeated elements of managable size) it should be applicable.</FONT></P>
<P><FONT SIZE=2>I am trying to find time to clean up the implementation and generalize it a bit. </FONT>
</P>
<P><FONT SIZE=2>Some code snips to explain how to do this are explained in this post:</FONT>
</P>
<P> <FONT SIZE=2><A HREF="http://lists.denveronline.net/lists/jdom-interest/2001-April/005484.html" TARGET="_blank">http://lists.denveronline.net/lists/jdom-interest/2001-April/005484.html</A></FONT>
</P>
<P><FONT SIZE=2>I can post more or go off this board and into details if this is not clear.</FONT>
</P>
<P><FONT SIZE=2>Regards,</FONT>
</P>
<P><FONT SIZE=2>Adam Simantel</FONT>
<BR><FONT SIZE=2>Adam.Simantel@merant.com</FONT>
</P>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Scott Smith [<A HREF="mailto:ssmith@summitlogic.com">mailto:ssmith@summitlogic.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, April 18, 2001 12:40 PM</FONT>
<BR><FONT SIZE=2>To: jdom-interest@jdom.org</FONT>
<BR><FONT SIZE=2>Subject: [jdom-interest] Code request</FONT>
</P>
<BR>
<P><FONT SIZE=2>Does anyone have code that can parse an XML file and return a JDOM Element</FONT>
<BR><FONT SIZE=2>(or Document) for each element under the root element via a callback. I</FONT>
<BR><FONT SIZE=2>need this for processing large XML files without consuming lots of memory.</FONT>
<BR><FONT SIZE=2>I know there have been conversations regarding using an XMLFilter to do</FONT>
<BR><FONT SIZE=2>this, but I was hoping someone else has already done this and would be kind</FONT>
<BR><FONT SIZE=2>enough to share there code.</FONT>
</P>
<P><FONT SIZE=2>Thanks,</FONT>
</P>
<BR>
<P><FONT SIZE=2>Scott P. Smith</FONT>
<BR><FONT SIZE=2>SummitLogic</FONT>
<BR><FONT SIZE=2>790 Oak Trail Drive</FONT>
<BR><FONT SIZE=2>Marietta, GA 30062</FONT>
<BR><FONT SIZE=2>USA</FONT>
</P>
<P><FONT SIZE=2>email: ssmith@summitlogic.com</FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>To control your jdom-interest membership:</FONT>
<BR><FONT SIZE=2><A HREF="http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com" TARGET="_blank">http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com</A></FONT>
</P>
</BODY>
</HTML>