N
Nathaniel Hughes
Hey all,
So I'm trying to create a java app that will display the contents of
an xml file in text format. The output must be similar to what is shown
if an xml doc is viewed in IE. The problem that I'm running into is that
due to the size of the files (100 megs plus), I have to use a SAX parser
instead of a DOM, and so far, I've yet to find a solution to traversing
"back-up" an xml file using a sax parser. Does anyone have any ideas?
Just to clarify, a sax parser can send me the output of a file just fine,
and I can display chunks of it at a time in the window of my app. If
someone scrolls down the page, I can just continue to grab info from my
parser (possibly using a "pull" method), but once someone scrolls back up
the page I have to retrieve that info from the xml file but I have no
handle there. I have to start from the top and somehow determine where in
the file I need to start grabbling info...
Hope that makes sense, any help would be greatly appreciated.
So I'm trying to create a java app that will display the contents of
an xml file in text format. The output must be similar to what is shown
if an xml doc is viewed in IE. The problem that I'm running into is that
due to the size of the files (100 megs plus), I have to use a SAX parser
instead of a DOM, and so far, I've yet to find a solution to traversing
"back-up" an xml file using a sax parser. Does anyone have any ideas?
Just to clarify, a sax parser can send me the output of a file just fine,
and I can display chunks of it at a time in the window of my app. If
someone scrolls down the page, I can just continue to grab info from my
parser (possibly using a "pull" method), but once someone scrolls back up
the page I have to retrieve that info from the xml file but I have no
handle there. I have to start from the top and somehow determine where in
the file I need to start grabbling info...
Hope that makes sense, any help would be greatly appreciated.