Thanks Ralf, DiHtmlParser doesn't meet my needs, I'll need DiXML, so the question about getting the character positions (both start and end positions) for both an element and an attribute is for DiXML. Can DiXML do that? Thanks! Thanks again. On Fri, Oct 28, 2011 at 5:32 PM, Delphi Inspiration <delphi@xxxxxxxx> wrote: > On 28.10.2011 06:22, Edwin Yip wrote: > > > Can we also get the character positions of both an element and an > attribute? > > For DIXml, line numbers are stored with each xmlNode. See DIXml -> > xmlNode in the DIXml.chm documentation. > > TDIHtmlParser.StartLine and TDIHtmlParser.StartCol return the start > position of the current HTML piece which has just been parsed. > > Ralf > _______________________________________________ > Delphi Inspiration mailing list > yunqa@xxxxxxxxxxxxx > //www.freelists.org/list/yunqa > > > > -- Best Regards, Edwin Yip Mind Mapping is as Effortless as Typing http://www.InnovationGear.com