C# Class Sgml.ElementDecl

An element declaration in a DTD.
Show file Open project: Synergex/Baconography Class Usage Examples

Public Methods

Method Description
AddAttDefs ( AttDef>.Dictionary list ) : void

Adds attribute definitions to the element declaration.

CanContain ( string name, SgmlDtd dtd ) : bool

Tests whether this element can contain another specified element.

ElementDecl ( string name, bool sto, bool eto, ContentModel cm, string inclusions, string exclusions ) : System

Initialises a new element declaration instance.

FindAttribute ( string name ) : AttDef

Finds the attribute definition with the specified name.

Method Details

AddAttDefs() public method

Adds attribute definitions to the element declaration.
public AddAttDefs ( AttDef>.Dictionary list ) : void
list AttDef>.Dictionary The list of attribute definitions to add.
return void

CanContain() public method

Tests whether this element can contain another specified element.
public CanContain ( string name, SgmlDtd dtd ) : bool
name string The name of the element to check for.
dtd SgmlDtd The DTD to use to do the check.
return bool

ElementDecl() public method

Initialises a new element declaration instance.
public ElementDecl ( string name, bool sto, bool eto, ContentModel cm, string inclusions, string exclusions ) : System
name string The name of the element.
sto bool Whether the start tag is optional.
eto bool Whether the end tag is optional.
cm ContentModel The of the element.
inclusions string
exclusions string
return System

FindAttribute() public method

Finds the attribute definition with the specified name.
If the attribute list has not yet been initialised.
public FindAttribute ( string name ) : AttDef
name string The name of the to find.
return AttDef