Introduction

ATagParser is a fast, efficient and incredibly easy to use tag-based document parsing component for Delphi versions 5 thru 7 and is source compilable with Delphi 8, Delphi 2005, 2006 and C++ Builder 6.

ATagParser's main use is in the disassembly and subsequent re-assembly of any tag based document that conforms to basic HTML syntax. ATagParser is HTML version independent and works with any type of tagged format that follows basic HTML rules. During normal usage, ATagParser scans its Content property and allows you to act on the various elements via an event. When an element is found, the element, along with other pieces of information about the element, are passed back via ATagParser's OnAttribute, OnData, OnTag and OnText events. Any errors having to do with the document, that occur during the parsing process, are returned via the OnError event. Exceptions that occur are returned via the OnException event.

The beauty of ATagParser is that it allows you a great deal of control over what will be parsed from the document and what will be ignored via the Elements
property. Think of it as the ability to fine tune the component on the fly to handle whatever tag based parsing needs you may have. You can set or remove parsing options from within the various events and the parsing engine recognizes the change instantly!

Talk about flexibility and power!

ATagParser was primarily written to be compliant with ASP, ASPX, HTML, XHTML and XML documents, but there is nothing to keep you from implementing non-HTML tag based templates with your own set of custom tags. ATagParser could care less about the names of the various tags. It only cares that they follow normal HTML coding conventions. This means that you can make up your own set of tags and ATagParser will handle them just fine!

Out of the box, ATagParser supports the following tag types and code blocks.

·HTML tags  
·XHTML tags  
·XML tags  
·ASP code blocks  
·ASP.NET tags  
·CDATA sections  
·PHP code blocks  
·JSP tags  
·WML tags  
·SiteSpring site tags  
·Your own perhaps?  

Which makes it ideal for the following uses:

·RSS feed parsing  
·HTML import for applications  
·HTML compression  
·Webpage and website scraping  
·Website content management  
·HTML or custom tag based rendering engines  
·Custom report generators based on a tag format  
·Custom tag based scripting engines  
·Custom tag based file formats  
·ASP, HTML and XHTML editors  
·Text, script and style sheet extraction utilities  
·Text filters and spell checkers  
·Web site search engines  
·Web site robots  
·Proxy servers  


The unregistered version of ATagParser shows a nag screen when the application is closed.
The 2.03+ versions of ATagParser support ANSI, UTF-8 and UTF-16 encoding types.




Copyright 2000 - 2006 John E McTaggart - All rights reserved worldwide