When using SAX,  Use the Locator interface to get the "line number" when
needed.
Alfredo

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Jueves, 19 de Abril de 2001 06:43 p.m.
To: [EMAIL PROTECTED]
Subject: Re: Question



SAXParseException gives the offending line number, which it must have
gotten from somewhere. Trace the code.

Mark Collette


On Fri, 20 Apr 2001, Pete Black wrote:

> Valid XML could be supplied as a multi-line file, or on one single line.
> The parser likely doesn't keep track of line numbers, and you may have
> to perform a separate pass through the file, line by line doing a
> substring compare till you find the start tag.
>
> > Hello.
> >
> > We use your parser  for the processing of the XML files. But we have a
problem.
> > It is necessary to define the line number of start-tag in the XML file
during
> > the processing.
> > We don't know how do it. Can you help us?
> >
> > Best regards.
> > Vasura Oleg.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to