[jdom-interest] (no subject)

Adrian Jetzer wwwaci at tic.ch
Wed Jul 17 05:27:11 PDT 2002


Hi there!


I'm parsing a xml-file. The file has a specific amount
of elements. 

Is there a way to know, on which line of the file 
the parser in a particular moment is?

For example. After I read (parsed) several elements of
the xml file, I would like to know, on which line
of the file the "actual-file-pointer" is.

I don't want to know the line-number for every element.
Just sometimes I want to check, on which line the
parser is.


For what do I use this?

I want to use it for a progress bar. I want to show the
user how far the parsing process is. I know the total
amount of lines in the file. So with some checkpoints
(hey parser, on which line are you now?) I can  realise
a progress bar ....


Adrian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020717/161e6eab/attachment.htm


More information about the jdom-interest mailing list