Back to API Reference
Class

TagParseRule

abstract

Base class for parsing XML-style markup tags (e.g., <b>, <color=#FF0000>).

Remarks

Derived classes override TagName to specify the tag name to match. Parameters are always optional: <tag>, <tag=value>, <tag/>, <tag=value/>. Self-closing is purely syntax-driven via />.
protected string TagName{ get }
protected bool IsVoid{ get }

When, the tag has HTML void-element semantics: every <tag> or <tag=value> form is treated as self-closing (produces a single  placeholder), and a stray </tag> is silently consumed. Use for inline-media tags (obj, sprite) where range semantics don't apply.

public void Reset()
public virtual void Finalize()
public virtual int TryMatch()

See Also