🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.xml
Article #123

TXMLDocument - Line number of a node?

#123
From: Alan Garny
Date: Tue, 29 Jan 2008 11:08
19 lines
1804 bytes
Hi,

I was wondering whether there is a way to get the line number of a node in a 
TXMLDocument object?

My understanding is that a DOM implementation is used to parse a XML file 
and represent it as a hierarchy of nodes. It would seem that the nodes don't 
hold any information about their location in the XML file.

I can understand it from a design point of view, but not from an end-user 
point of view. Indeed, while parsing the XML file, and therefore nodes, I do 
various checks and I want to be able to report any problem that there might 
be with the XML code. I already do all of that, except that to help my users 
even further, I would like to be able to refer to the line/column of the 
problem.

So, is there really no way of doing that?

Cheers, Alan. 
Technical Details
Message-ID: <479f0922$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.arglkargh.de!feeder.erje.net!npeer.de.kpn-eurorings.net!npeer-ng2.kpn.DE!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f5d9b,fc655fcac5d0f7c1,start
X-Google-Attributes: gidf5d9b,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Alan Garny" <someone@somewhere.com>
Newsgroups: borland.public.delphi.xml
Subject: TXMLDocument - Line number of a node?
Date: Tue, 29 Jan 2008 11:08:17 -0000
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.17052
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.17052
NNTP-Posting-Host: 163.1.249.61
Message-ID: <479f0922$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1201604898 163.1.249.61 (29 Jan 2008 03:08:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.arglkargh.de!feeder.erje.net!npeer.de.kpn-eurorings.net!npeer-ng2.kpn.DE!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail