C# Class Monobjc.Tools.Generator.Parsers.Sgml.SgmlDtd

Provides DTD parsing and support for the SgmlParser framework.
Mostra file Open project: Monobjc/monobjc-tools Class Usage Examples

Public Methods

Method Description
FindElement ( string name ) : ElementDecl

Finds an element declaration in the DTD with the specified name.

FindEntity ( string name ) : Entity

Finds an entity in the DTD with the specified name.

Parse ( Uri baseUri, string name, string pubid, string url, string subset, string proxy, XmlNameTable nt ) : SgmlDtd

Parses a DTD and creates a SgmlDtd instance that encapsulates the DTD.

SgmlDtd ( string name, XmlNameTable nt ) : System

Initialises a new instance of the SgmlDtd class.

Private Methods

Method Description
GetEntitiesLiteralNameLookup ( ) : Entity>.Dictionary
GetParameterEntity ( string name ) : Entity
Parse ( Uri baseUri, string name, TextReader input, string subset, string proxy, XmlNameTable nt ) : SgmlDtd
Parse ( ) : void
ParseAttDef ( char ch ) : AttDef
ParseAttDefault ( char ch, AttDef attdef ) : void
ParseAttList ( ) : void
ParseAttList ( AttDef>.Dictionary list, char term ) : void
ParseAttType ( char ch, AttDef attdef ) : void
ParseContentModel ( char ch ) : ContentModel
ParseDeclComment ( bool full ) : char
ParseDeclComments ( ) : char
ParseElementDecl ( ) : void
ParseEntity ( ) : void
ParseIgnoreSection ( ) : void
ParseIncludeSection ( ) : void
ParseMarkedSection ( ) : void
ParseMarkup ( ) : void
ParseModel ( char cmt, ContentModel cm ) : void
ParseNameGroup ( char ch, bool nmtokens ) : string[]
ParseNameList ( ArrayList names, bool nmtokens ) : void
ParseParameterEntity ( string term ) : Entity
PopEntity ( ) : void
PushEntity ( Uri baseUri, Entity e ) : void
ScanName ( string term ) : string

Method Details

FindElement() public method

Finds an element declaration in the DTD with the specified name.
public FindElement ( string name ) : ElementDecl
name string The name of the to find and return.
return ElementDecl

FindEntity() public method

Finds an entity in the DTD with the specified name.
public FindEntity ( string name ) : Entity
name string The name of the to find.
return Entity

Parse() public static method

Parses a DTD and creates a SgmlDtd instance that encapsulates the DTD.
public static Parse ( Uri baseUri, string name, string pubid, string url, string subset, string proxy, XmlNameTable nt ) : SgmlDtd
baseUri System.Uri The base URI of the DTD.
name string The name of the DTD.
pubid string
url string
subset string
proxy string
nt System.Xml.XmlNameTable The is NOT used.
return SgmlDtd

SgmlDtd() public method

Initialises a new instance of the SgmlDtd class.
public SgmlDtd ( string name, XmlNameTable nt ) : System
name string The name of the DTD.
nt System.Xml.XmlNameTable The is NOT used.
return System