On 12.12.2011 08:54, Edwin Yip wrote: > I'm going to add custom attributes to all html tags (start tags only), > can DiHtmlParser handle this? Yes. DIHtmlParser records names and values of *all* tag attributes in an instance of TDITag. For HTML tags, this instance is accessible via the TDIHtmlParser.HtmlTag property. If you want TDIHtmlParser to assign an ID to an attribute name, you must register this with the RegisterAttrib() procedure. TDIHtmlParser will then assign the ID of matching attribute names to the TDITag.NummberAt[Idx] property. If you want to use IDs for the standard HTML attribute names, do not forget to call RegisterHtmlAttribs(), too, before starting the parsing. Ralf _______________________________________________ Delphi Inspiration mailing list yunqa@xxxxxxxxxxxxx //www.freelists.org/list/yunqa