ClassParsedElement
Class that represents a markup element that is being parsed. This is the intermediate state between raw text of the mark-up and the fully parsed, strongly typed Element object that represents it
Definition
Namespace:ArtOfTest.Common
Assembly:ArtOfTest.WebAii.dll
Syntax:
public sealed class ParsedElement
Inheritance: objectParsedElement
Constructors
ParsedElement(ParsedElementType, string, bool)
Create a new ParsedElement object.
Declaration
public ParsedElement(ParsedElementType elementType, string content, bool validateIllegal)
Parameters
elementType
The type of element to create.
content
The raw content for the element.
validateIllegal
Whether to validate for illegal formats.
ParsedElement(ParsedElementType, string, string, string)
Create a new ParsedElement object.
Declaration
public ParsedElement(ParsedElementType elementType, string content, string tagName, string remainder)
Parameters
elementType
The type of element to create.
content
The raw content for the element.
tagName
The tag name of the element.
remainder
The rest of the tag text except for the tag name.
Properties
AbsoluteTagIndex
Gets the absolute tag index on the page. (Only Open/valid tags are counted, no comments)
Attributes
Gets the parsed attributes of the element.
Declaration
public NameValueCollection Attributes { get; }
Property Value
IsBeginTag
Gets whether the element is a begin tag or not.
IsEndTag
Gets whether the element is an end tag or not.
IsSelfClosing
Gets whether the element is a self closing tag (i.e. <font ... /> )
ParsingType
Gets the parsed element type.
Declaration
public ParsedElementType ParsingType { get; }
Property Value
Tag
A tag associated with this element
TagName
Gets the tagName of the element.
TagNameIndex
Gets the TagName index within the page. (Only valid tags are counted, no comments)
Methods
ToString()
The string representation of this element.
Declaration
public override string ToString()
Returns
The string representation.
Overrides