<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [jdom-interest] Code request</TITLE>
<META content="MSHTML 5.50.4207.2601" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=070542319-23042001><FONT face=Arial color=#0000ff
size=2>Adam,</FONT></SPAN></DIV>
<DIV><SPAN class=070542319-23042001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=070542319-23042001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=070542319-23042001><FONT face=Arial color=#0000ff size=2>Now I
remember reading your original post. At the time I read your post, I did
not have a direct need. Now I do. If you would be so kind as to
email me your code, I will email back any changes I make. I understand
(from your original message) I will have to copy your code into the jdom source
tree and rebuild jdom. Is that right?</FONT></SPAN></DIV>
<DIV><SPAN class=070542319-23042001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=070542319-23042001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=070542319-23042001><FONT face=Arial color=#0000ff size=2>Thanks
very much,</FONT></SPAN></DIV>
<DIV><SPAN class=070542319-23042001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=070542319-23042001><FONT face=Arial color=#0000ff
size=2>Scott</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Adam Simantel
[mailto:Adam.Simantel@merant.com]<BR><B>Sent:</B> Monday, April 23, 2001 2:59
PM<BR><B>To:</B> Scott Smith; jdom-interest@jdom.org<BR><B>Subject:</B> RE:
[jdom-interest] Code request<BR><BR></FONT></DIV><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 target=_blank
href="http://lists.denveronline.net/lists/jdom-interest/2001-April/005484.html">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
target=_blank
href="http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com">http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com</A></FONT>
</P></BLOCKQUOTE></BODY></HTML>