JVCL Help:TJvHTMLParser.AnalyseString

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Parses the specified HTML content.


Pascal

 procedureAnalyseString(constStr: string);


Parameters

Parameters Description
const Str: string HTML content to parse.


Description

AnalyseString is a procedure used to specify the HTML Content to be parsed, and to generate a list with information about tags detected during the method. The value in the Str argument is stored for subsequent use in the Content property.
HTML tags recognized by the parser are defined using the AddCondition method or the Parser property. Use AddCondition to define the HTML tags at run-time. Use the Parser property to define the HTML tags at design-time. If no tags have been defined at run-time using AddCondition, any assigned values in Parser are used to create the HTML tag definitions for the parser.
The TagList property is cleared proper to parsing, and updated to reflect HTML tags found matching the their corresponding TJvParserInfo instance. All values in the Content property are examined for recognized HTML tags during the parsing operation. When the parsing operation has been completed, the values in TagList are sorted by their offset into the Content property.
Event notifications are performed using the OnKeyFound and OnKeyFoundEx event handlers for each HTML tag stored in the TagList. When both the OnKeyFound and the OnKeyFoundEx events handlers are assigned, both events are fired for each HTML tag. The OnKeyFoundEx event handler include any attribute names and values found in the parsed HTML tags.
AnalyseString is called in the AnalyseFile method.


See Also

TJvHTMLParser.Content, TJvHTMLParser.AddCondition, TJvHTMLParser.Parser, TJvHTMLParser.TagList, TJvHTMLParser.OnKeyFound, TJvHTMLParser.OnKeyFoundEx


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page