<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Nachricht</TITLE>
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=575061813-17072002><FONT face="Courier New" color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=575061813-17072002><FONT face="Courier New" color=#0000ff
size=2>you could use the count() function in xpath in order to program a
progress bar.</FONT></SPAN></DIV>
<DIV><SPAN class=575061813-17072002><FONT face="Courier New" color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=575061813-17072002><FONT face="Courier New" color=#0000ff
size=2>Mark</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> jdom-interest-admin@jdom.org
[mailto:jdom-interest-admin@jdom.org] <B>On Behalf Of </B>Adrian
Jetzer<BR><B>Sent:</B> Wednesday, July 17, 2002 2:27 PM<BR><B>To:</B>
jdom-interest@jdom.org<BR><B>Subject:</B> [jdom-interest] (no
subject)<BR><BR></FONT></DIV>
<DIV><FONT face=Courier size=2>Hi there!</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>I'm parsing a xml-file. The file has a specific
amount</FONT></DIV>
<DIV><FONT face=Courier size=2>of elements. </FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>Is there a way to know, on which line of the
file </FONT></DIV>
<DIV><FONT face=Courier size=2>the parser in a </FONT><FONT face=Courier
size=2>particular moment is?</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>For example. After I read (parsed) several
elements of</FONT></DIV>
<DIV><FONT face=Courier size=2>the xml file, I would like to know, on which
line</FONT></DIV>
<DIV><FONT face=Courier size=2>of the file the "actual-file-pointer"
is.</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>I don't want to know the line-number for every
element.</FONT></DIV>
<DIV><FONT face=Courier size=2>Just sometimes I want to check, on which line
the</FONT></DIV>
<DIV><FONT face=Courier size=2>parser is.</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>For what do I use this?</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>I want to use it for a progress bar. I want to
show the</FONT></DIV>
<DIV><FONT face=Courier size=2>user how far the parsing process is. I know the
total</FONT></DIV>
<DIV><FONT face=Courier size=2>amount of lines in the file. So with some
checkpoints</FONT></DIV>
<DIV><FONT face=Courier size=2>(hey parser, on which line
are you now?) I can </FONT> <FONT face=Courier
size=2>realise</FONT></DIV>
<DIV><FONT face=Courier size=2>a progress bar ....</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>Adrian</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>