[yunqa.de] Re: Re DIHTMLParser usage

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Thu, 06 Nov 2008 13:04:03 +0100

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



Other related posts: