Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: java get xml file line number for the current node Date: Tue, 21 Feb 2012 11:50:20 -0800 Organization: albasani.net Lines: 34 Message-ID: References: <07n7k7prea2l3fau5bhuv930l43k41iu5m@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net w8vZF9IfjZEPJ/5hC4VprUwRWt54JcKT+4vqZvy9bXXYk40eQ+mNGB4Yl/ckIjS9EUb35NnV+bihwRFDBxawXPmW8CZsnpybDirruCo5sIBrH2W7SZfUt5Jc8k7UJMHj NNTP-Posting-Date: Tue, 21 Feb 2012 19:50:22 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="uUdJrjSEI72eYEHastrGKhsIhuXf50hoVlo5yn2oq1EkV9xzeFLblJUfM6zvln3k5YL4Y3+6E7npIKQUHRFrtigf7wOWy0bF84pZPHKL8mYezEQLBI8R7SRf0qYAEpNS"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: <07n7k7prea2l3fau5bhuv930l43k41iu5m@4ax.com> Cancel-Lock: sha1:bBlZiAZ0Fk6Txo3arlW92OWav88= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:12238 Gene Wirchenko wrote: > Lew wrote: > > [snip] > >> Aside from the fact that I've conceded the limits of my statement multiple >> times before you posted, which apparently you've chosen to ignore in your rush >> to seem clever, you completely missed my point. > > Odd use of "conceded" qwhen you continue to make your argument: Odd use of "continue to make [my] argument" when I made a different point. >> Are there line numbers in a DOM tree? >> >> No, of course not, and that's what I was trying to say. The line numbers don't >> matter. What matters is the structure of the tree. Just like Java source line > > It depends on how you are looking at the data. If you are trying > track down an error, knowing what line the parser was working on when > it threw the error will usually help in locating the error. That's line numbers in the source, a different question. Once the document has been parsed, the line number ceases to have relevance. You discuss what's needed during compilation, a completely separate phase from the result phase, in this case a DOM tree. I agree that it's useful to know where in the source there's a problem, up until but not including when the source has lost relevance. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg