Rael Bauer wrote: >2 questions re DIHTMLParser: > >1. how to add text (it will be a comment type tag) directly after doctype tag? As in the previous demo, parse until the ptDTD, write the current piece and then write your comment using TDIHtmlWriterPlugin.WriteComment. >2. how to remove all attributes for a tag e.g. body tag Call TDITag.ClearAttribs before the TDIHtmlWriterPlugin writes out the tag. Ralf _______________________________________________ Delphi Inspiration mailing list yunqa@xxxxxxxxxxxxx //www.freelists.org/list/yunqa