No line numbers if using a string source for parser

Graham Bentley <[email protected]>
Newsgroups gmane.comp.parsers.htmlparser.user
Message-ID <[email protected]>
Hi there,

Im using the parser to extract links and am passing the html in as a 
string source ie:
Parser oParser = new Parser(new Lexer(sHTML));
However Ive noticed that I can get the starting position of the 
extracted nodes:
LinkTag.getStartPosition
but cannot get the starting line number:
LinkTag.getStartingLineNumber
is always 0

it works fine and gives the line number if I pass in an input stream 
from httpurlconnection or the urlconnection itself.
so a bit confused - is this a bug or is it not possible to get the line 
numbers when using the stringsource ?
could really do with the line numbers if there is a correct way of doing 
this, thanks.

all working really well apart from that, thanks for the library.

regards,
Graham



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.