SUMMARY: MODULE | CLASS | TYPE | PROC | VAR | CONST | DETAIL: TYPE | PROC | VAR | CONST |
This module implements the mechanisms to store, maintain, and query the data gathered from an XML document's DTD. An instance of Builder is created by the parser XML:Parser.Parser to hold a document's DTD information.
URI XML:UnicodeBuffer XML:UnicodeCodec
Class Summary: AttValue [Detail] | |
+--XML:DTD.AttValue | |
Field Summary | |
fragmentList-: Fragment | |
Constructor Summary | |
InitAttValue(AttValue) | |
Method Summary | |
Append(Fragment) | |
Clear() | |
Flatten(AttrDecl): String Returns the string representation of the attribute value attrDecl. | |
FlattenNorm(AttrDecl, VAR BOOLEAN): String Like AttValue.Flatten, but reports if normalization has been done. | |
FlattenValue(BOOLEAN, VAR BOOLEAN): String Returns the string representation of the attribute value attValue. | |
Length(): LONGINT Calculates the length of the attribute value, as if it were of type CDATA. |
Class Summary: AttrDecl [Detail] | |
+---XML:DTD.Declaration | +--XML:DTD.AttrDecl | |
Field Summary | |
default-: DefaultType | |
defaultValue-: AttValue | |
elementName-: String | |
enumeration-: Enumeration | |
externalMarkupDecl-: BOOLEAN | |
type-: AttributeType | |
Inherited Fields | |
From XML:DTD.Declaration: | |
Constructor Summary | |
InitAttrDecl(AttrDecl, String, String, AttributeType, Enumeration, DefaultType, AttValue, BOOLEAN) |
Class Summary: Builder [Detail] | |
+--XML:DTD.Builder | |
Field Summary | |
attributeList-: Declaration | |
elementNamespace-: Namespace Namespace with element declarations. | |
geNamespace-: Namespace Namespace with general entity declarations. | |
peNamespace-: Namespace Namespace with parameter entity declarations. | |
rootName-: String Name of the root name, as given in the DTD. | |
Constructor Summary | |
Init(Builder) Initializes the DTD builder. | |
New(): Builder | |
Method Summary | |
AddAttribute(AttrDecl) | |
AttachAttributes() Attaches all attribute declarations in the DTD to the declarations of their element. | |
IsValidEntityDecl(String, String): BOOLEAN Tests if the internal entity declaration is legal. | |
NewAttValue(): AttValue | |
NewAttrDecl(String, String, AttributeType, Enumeration, DefaultType, AttValue, BOOLEAN): AttrDecl | |
NewCharacters(String, CharPos, CharPos, BOOLEAN): Characters | |
NewChoiceCP(CPModeType, CP): ChoiceCP | |
NewDocumentEntity(URI): ExternalEntity | |
NewElementDecl(String, CP, BOOLEAN): ElementDecl | |
NewEntityRef(String, Entity): EntityRef | |
NewEnumeration(): Enumeration | |
NewExternalDTD(String, String, URI): ExternalEntity | |
NewExternalEntity(String, EntityType, String, String, String, URI, BOOLEAN): ExternalEntity | |
NewInternalEntity(String, EntityType, String, BOOLEAN): InternalEntity | |
NewNameCP(CPModeType, String): NameCP | |
NewNotation(String, String, String, URI): Notation | |
NewSeqCP(CPModeType, CP): SeqCP | |
SetRootName(String) |
Class Summary: CP [Detail] | |
+--XML:DTD.CP | |
Field Summary | |
cpMode-: SHORTINT | |
next-: CP | |
Method Summary | |
SetMode(SHORTINT) | |
SetNext(CP) |
Class Summary: Characters [Detail] | |
+---XML:DTD.Fragment | +--XML:DTD.Characters | |
Field Summary | |
source-: String The array slice `source[sourceStart, sourceEnd[' holds the fragment's character data. | |
sourceEnd-: CharPos | |
sourceStart-: CharPos | |
Inherited Fields | |
From XML:DTD.Fragment: | |
Constructor Summary | |
InitCharacters(Characters, String, CharPos, CharPos) |
Class Summary: ChoiceCP [Detail] | |
+---XML:DTD.CP | +--XML:DTD.ChoiceCP | |
Field Summary | |
list-: CP | |
Inherited Fields | |
From XML:DTD.CP: | |
Constructor Summary | |
InitChoiceCP(ChoiceCP, CPModeType, CP) | |
Inherited Methods | |
From XML:DTD.CP: |
Class Summary: Declaration [Detail] | |
+--XML:DTD.Declaration | |
Field Summary | |
name-: String Name of the declared object. | |
next-: Declaration Next declaration in namespace. | |
Constructor Summary | |
InitDeclaration(Declaration, String) |
Class Summary: ElementDecl [Detail] | |
+---XML:DTD.Declaration | +--XML:DTD.ElementDecl | |
Field Summary | |
attrNamespace-: Namespace The attribute namespace of the element. | |
contentModel-: CP The content model of the element. | |
contentType-: ContentType Type of the content model. | |
externalMarkupDecl-: BOOLEAN Set if the entity is declared in an external markup declaration. | |
idAttr-: AttrDecl If the element has an ID attribute, then this field refers to its attribute declaration after Builder.AttachAttributes has been called. | |
multipleDecl-: BOOLEAN Set to TRUE, if more than one declaration of this element type appears in the DTD. | |
notationAttr-: AttrDecl If the element has a NOTATION attribute, then this field refers to its attribute declaration after Builder.AttachAttributes has been called. | |
regexp-: RegexpInfo Regular expression contructed for `children' element content. | |
Inherited Fields | |
From XML:DTD.Declaration: | |
Constructor Summary | |
InitElementDecl(ElementDecl, String, CP, Namespace, BOOLEAN) | |
Method Summary | |
IsElementContent(): BOOLEAN | |
IsEmpty(): BOOLEAN | |
SetMultipleDecl() | |
SetRegexp(RegexpInfo) |
Class Summary: Entity [Detail] | |
+---XML:DTD.Declaration | +--XML:DTD.Entity | |
Field Summary | |
attValue: AttValue This field is used internally by the parser. | |
entityValue-: String This is either the value of an internal entity, or the internalized version of an external entity. | |
expanding: BOOLEAN This field is used internally by the parser. | |
externalMarkupDecl-: BOOLEAN Set if the entity is declared in an external markup declaration. | |
type-: EntityType This field indicates the kind of entity. | |
Inherited Fields | |
From XML:DTD.Declaration: | |
Method Summary | |
IsDocumentEntity(): BOOLEAN | |
LengthValue(): LONGINT Returns the length of the entity's value. | |
SetEntityValue(String) |
Class Summary: EntityRef [Detail] | |
+---XML:DTD.Fragment | +--XML:DTD.EntityRef | |
Field Summary | |
entity: Entity After the name has been resolved successfully, this field refers to the internal entity declaration that is being referenced. | |
name-: String The name of the reference. | |
Inherited Fields | |
From XML:DTD.Fragment: | |
Constructor Summary | |
InitEntityRef(EntityRef, String, Entity) |
Class Summary: Enumeration [Detail] | |
+--XML:DTD.Enumeration | |
Field Summary | |
nameList-: NameNode | |
Method Summary | |
Append(String) | |
Matches(VAR StringVar): BOOLEAN Returns TRUE, if one of the names listed in the enumeration matches the string name. |
Class Summary: ExternalEntity [Detail] | |
+---XML:DTD.Declaration | +---XML:DTD.Entity | +--XML:DTD.ExternalEntity | |
Field Summary | |
baseURI-: URI The base URI of the external entity. | |
codecFactory-: Factory The factory object that produced the Unicode decoder that is used to access the files contents. | |
encoding-: String The encoding string from the XML or text declaration. | |
ndata-: String For a parsed entity declaration, this field is NIL. | |
public-: String Public identifier of the external entity. | |
standalone-: StandaloneType The standalone declaration. | |
system-: String System identifier of the external entity. | |
version-: String The version string from the XML or text declaration. | |
Inherited Fields | |
From XML:DTD.Declaration: From XML:DTD.Entity: | |
Method Summary | |
IsDocumentEntity(): BOOLEAN | |
SetCodecFactory(Factory) | |
SetEncoding(String) | |
SetStandalone(StandaloneType) | |
SetVersion(String) | |
Inherited Methods | |
From XML:DTD.Entity: |
Class Summary: Fragment [Detail] | |
+--XML:DTD.Fragment | |
Field Summary | |
next-: Fragment Refers to the next fragment in the list AttValue.fragmentList. | |
Constructor Summary | |
InitFragment(Fragment) |
Class Summary: InternalEntity [Detail] | |
+---XML:DTD.Declaration | +---XML:DTD.Entity | +--XML:DTD.InternalEntity | |
Inherited Fields | |
From XML:DTD.Declaration: From XML:DTD.Entity: | |
Inherited Methods | |
From XML:DTD.Entity: |
Class Summary: NameCP [Detail] | |
+---XML:DTD.CP | +--XML:DTD.NameCP | |
Field Summary | |
name-: String | |
Inherited Fields | |
From XML:DTD.CP: | |
Constructor Summary | |
InitNameCP(NameCP, CPModeType, String) | |
Inherited Methods | |
From XML:DTD.CP: |
Class Summary: NameNode [Detail] | |
+--XML:DTD.NameNode | |
Field Summary | |
name-: String | |
next-: NameNode |
Class Summary: Namespace [Detail] | |
+--XML:DTD.Namespace | |
Field Summary | |
declList-: Declaration Refers to the first element of the list of declarations. | |
Constructor Summary | |
NewNamespace(): Namespace | |
Method Summary | |
Add(Declaration): BOOLEAN Adds the declaration decl to the namespace ns. | |
Get(String): Declaration |
Class Summary: NamespaceDeclaration [Detail] | |
+--XML:DTD.NamespaceDeclaration | |
Field Summary | |
prefix-: String The prefix being declared. | |
uri-: StringURI The absolute URI (plus optional fragment identifier) of the namespace being declared. | |
Constructor Summary | |
NewNamespaceDeclaration(String, StringURI): NamespaceDeclaration |
Class Summary: Notation [Detail] | |
+---XML:DTD.Declaration | +--XML:DTD.Notation | |
Field Summary | |
baseURI-: URI The base URI of the external entity. | |
public-: String Public identifier. | |
system-: String System identifier. | |
Inherited Fields | |
From XML:DTD.Declaration: |
Class Summary: RegexpInfo [Detail] | |
+--XML:DTD.RegexpInfo |
Class Summary: SeqCP [Detail] | |
+---XML:DTD.CP | +--XML:DTD.SeqCP | |
Field Summary | |
list-: CP | |
Inherited Fields | |
From XML:DTD.CP: | |
Constructor Summary | |
InitSeqCP(SeqCP, CPModeType, CP) | |
Inherited Methods | |
From XML:DTD.CP: |
Type Summary | |
AttributeType = SHORTINT Indicates the type of an attribute. | |
CPModeType = SHORTINT | |
Char = Char Character type used to store names and character data from an XML document. | |
CharPos = CharPos This integer type is used to store the position of a character in the input buffer or in a string. | |
ContentType = SHORTINT | |
DefaultType = SHORTINT Indicates the defaulting mode of an attribute declaration. | |
ElementWhitespaceType = SHORTINT | |
EntityType = SHORTINT Values of this type indicate the type of an entity. | |
StandaloneType = SHORTINT Used to store information about the `standalone' of an XML declaration. | |
String = CharArray A pointer to an array of Char. | |
StringURI = POINTER TO ARRAY OF CHAR | |
StringVar = ARRAY OF Char An open array with Char as element type. |
Procedure Summary | |
GetString(VAR ARRAY OF Char, LONGINT, LONGINT): String | |
GetStringURI(VAR ARRAY OF CHAR, LONGINT, LONGINT): StringURI | |
GetStringValue(ARRAY OF Char): String |
Variable Summary | |
undefAttr-: AttrDecl |
Constant Summary | |
attrCDATA | |
attrDefault | |
attrENTITIES | |
attrENTITY | |
attrENUMERATED | |
attrFixed | |
attrID | |
attrIDREF | |
attrIDREFS | |
attrImplied | |
attrNMTOKEN | |
attrNMTOKENS | |
attrNOTATION | |
attrRequired | |
contentANY | |
contentChildren | |
contentEMPTY | |
contentMixed | |
cpOnce | |
cpOptional | |
cpRepeat0 | |
cpRepeat1 | |
elementWhitespaceNo If the document source for a character sequence does not match the S production (for example, because it includes a non-whitespace character, a character reference, or is a CDATA section), then XML:Builder.Characters.elementWhitespace is elementWhitespaceNo. | |
elementWhitespaceUnknown If the document source matches the production S, but the parser does not know if the current element permits only element content, then the character data is flagged as elementWhitespaceUnknown. | |
elementWhitespaceYes This flag is used if the document source matches the production S, the parser is validating, and the current element only permits element content. | |
entityDocument Document entity. | |
entityExternalDTDSubset Entity representing the external DTD subset. | |
entityExternalGeneral External general entity. | |
entityExternalParameter External parameter entity. | |
entityInternalGeneral Internal general entity. | |
entityInternalParameter Internal parameter entity. | |
entityUnparsed Unparsed external general entity. | |
standaloneNo | |
standaloneNotApplicable | |
standaloneNotPresent | |
standaloneYes |
Class Detail: AttValue |
Field Detail |
FIELD fragmentList-: Fragment
Constructor Detail |
PROCEDURE InitAttValue(attValue: AttValue)
Method Detail |
PROCEDURE (attValue: AttValue) Append(fragment: Fragment)
PROCEDURE (attValue: AttValue) Clear()
PROCEDURE (attValue: AttValue) Flatten(attrDecl: AttrDecl): String
Returns the string representation of the attribute value attrDecl. If attrDecl is not NIL, and the attribute's type is not attrCDATA, then sequences of spaces are collapsed into a single space, and leading and trailing whitespace is removed from the string.
PROCEDURE (attValue: AttValue) FlattenNorm(attrDecl: AttrDecl; VAR didNormalization: BOOLEAN): String
Like AttValue.Flatten, but reports if normalization has been done. On completion, didNormalization is TRUE if, and only if, the value was modified by normalizing whitespace.
PROCEDURE (attValue: AttValue) FlattenValue(normalizeWhitespace: BOOLEAN; VAR didNormalization: BOOLEAN): String
Returns the string representation of the attribute value attValue. If normalizeWhitespace is TRUE, then sequences of spaces are collapsed into a single space, and leading and trailing whitespace is removed from the string. On completion, didNormalization is TRUE if, and only if, the value was modified by normalizing whitespace.
PROCEDURE (attValue: AttValue) Length(): LONGINT
Calculates the length of the attribute value, as if it were of type CDATA.
Class Detail: AttrDecl |
Field Detail |
FIELD default-: DefaultType
FIELD defaultValue-: AttValue
FIELD elementName-: String
FIELD enumeration-: Enumeration
FIELD externalMarkupDecl-: BOOLEAN
FIELD type-: AttributeType
Constructor Detail |
PROCEDURE InitAttrDecl(attrDecl: AttrDecl; elementName: String; name: String; type: AttributeType; enum: Enumeration; default: DefaultType; defaultValue: AttValue; externalMarkupDecl: BOOLEAN)
Class Detail: Builder |
Field Detail |
FIELD attributeList-: Declaration
FIELD elementNamespace-: Namespace
Namespace with element declarations.
FIELD geNamespace-: Namespace
Namespace with general entity declarations.
FIELD peNamespace-: Namespace
Namespace with parameter entity declarations.
FIELD rootName-: String
Name of the root name, as given in the DTD.
Constructor Detail |
PROCEDURE Init(b: Builder)
Initializes the DTD builder. Also registers the predefined general entities `lt', `gt', `amp', `apos', and `quot'.
PROCEDURE New(): Builder
Method Detail |
PROCEDURE (b: Builder) AddAttribute(attrDecl: AttrDecl)
PROCEDURE (b: Builder) AttachAttributes()
Attaches all attribute declarations in the DTD to the declarations of their element.
PROCEDURE (b: Builder) IsValidEntityDecl(name: String; entityValue: String): BOOLEAN
Tests if the internal entity declaration is legal. If the name name refers to a predefined entity, but entityValue is no legal replacement text for the entity, then this function returns FALSE. Otherwise, it returns TRUE.
PROCEDURE (b: Builder) NewAttValue(): AttValue
PROCEDURE (b: Builder) NewAttrDecl(elementName: String; name: String; type: AttributeType; enum: Enumeration; default: DefaultType; defaultValue: AttValue; externalMarkupDecl: BOOLEAN): AttrDecl
PROCEDURE (b: Builder) NewCharacters(source: String; start: CharPos; end: CharPos; createCopy: BOOLEAN): Characters
PROCEDURE (b: Builder) NewChoiceCP(cpMode: CPModeType; list: CP): ChoiceCP
PROCEDURE (b: Builder) NewDocumentEntity(baseURI: URI): ExternalEntity
PROCEDURE (b: Builder) NewElementDecl(name: String; contentModel: CP; externalMarkupDecl: BOOLEAN): ElementDecl
PROCEDURE (b: Builder) NewEntityRef(name: String; entity: Entity): EntityRef
PROCEDURE (b: Builder) NewEnumeration(): Enumeration
PROCEDURE (b: Builder) NewExternalDTD(public: String; system: String; baseURI: URI): ExternalEntity
PROCEDURE (b: Builder) NewExternalEntity(name: String; type: EntityType; public: String; system: String; ndata: String; baseURI: URI; externalMarkupDecl: BOOLEAN): ExternalEntity
PROCEDURE (b: Builder) NewInternalEntity(name: String; type: EntityType; entityValue: String; externalMarkupDecl: BOOLEAN): InternalEntity
PROCEDURE (b: Builder) NewNameCP(cpMode: CPModeType; name: String): NameCP
PROCEDURE (b: Builder) NewNotation(name: String; public: String; system: String; baseURI: URI): Notation
PROCEDURE (b: Builder) NewSeqCP(cpMode: CPModeType; list: CP): SeqCP
PROCEDURE (b: Builder) SetRootName(name: String)
Class Detail: CP |
Field Detail |
FIELD cpMode-: SHORTINT
FIELD next-: CP
Method Detail |
PROCEDURE (cp: CP) SetMode(cpMode: SHORTINT)
PROCEDURE (cp: CP) SetNext(next: CP)
Class Detail: Characters |
Field Detail |
FIELD source-: String
The array slice `source[sourceStart, sourceEnd[' holds the fragment's character data.
FIELD sourceEnd-: CharPos
FIELD sourceStart-: CharPos
Constructor Detail |
PROCEDURE InitCharacters(chars: Characters; source: String; start: CharPos; end: CharPos)
Class Detail: ChoiceCP |
Field Detail |
FIELD list-: CP
Constructor Detail |
PROCEDURE InitChoiceCP(choiceCP: ChoiceCP; cpMode: CPModeType; list: CP)
Class Detail: Declaration |
Field Detail |
FIELD name-: String
Name of the declared object.
FIELD next-: Declaration
Next declaration in namespace.
Constructor Detail |
PROCEDURE InitDeclaration(decl: Declaration; name: String)
Class Detail: ElementDecl |
Field Detail |
FIELD attrNamespace-: Namespace
The attribute namespace of the element.
FIELD contentModel-: CP
The content model of the element.
FIELD contentType-: ContentType
Type of the content model.
FIELD externalMarkupDecl-: BOOLEAN
Set if the entity is declared in an external markup declaration.
FIELD idAttr-: AttrDecl
If the element has an ID attribute, then this field refers to its attribute declaration after Builder.AttachAttributes has been called. If the element has no ID attribute, then this field is NIL. If it has multiple ID attributes, it has the value undefAttr.
FIELD multipleDecl-: BOOLEAN
Set to TRUE, if more than one declaration of this element type appears in the DTD.
FIELD notationAttr-: AttrDecl
If the element has a NOTATION attribute, then this field refers to its attribute declaration after Builder.AttachAttributes has been called. If the element has no NOTATION attribute, then this field is NIL. If it has multiple NOTATION attributes, it has the value undefAttr.
FIELD regexp-: RegexpInfo
Regular expression contructed for `children' element content.
Constructor Detail |
PROCEDURE InitElementDecl(elemDecl: ElementDecl; name: String; contentModel: CP; attrNamespace: Namespace; externalMarkupDecl: BOOLEAN)
Method Detail |
PROCEDURE (elemDecl: ElementDecl) IsElementContent(): BOOLEAN
PROCEDURE (elemDecl: ElementDecl) IsEmpty(): BOOLEAN
PROCEDURE (elemDecl: ElementDecl) SetMultipleDecl()
PROCEDURE (elemDecl: ElementDecl) SetRegexp(regexp: RegexpInfo)
Class Detail: Entity |
Field Detail |
FIELD attValue: AttValue
This field is used internally by the parser. If an entity is ever expanded within an attribute value, this field holds the expanded text before non-CDATA normalization.
FIELD entityValue-: String
This is either the value of an internal entity, or the internalized version of an external entity. For an internal entity, this field is never NIL. This string is not terminated with an 0X, use Entity.LengthValue to determine its length.
FIELD expanding: BOOLEAN
This field is used internally by the parser. While expanding the entity, it is set to TRUE.
FIELD externalMarkupDecl-: BOOLEAN
Set if the entity is declared in an external markup declaration.
FIELD type-: EntityType
This field indicates the kind of entity. It distinguishes between general/parameter, internal/external, and parsed/unparsed.
Method Detail |
PROCEDURE (entity: Entity) IsDocumentEntity(): BOOLEAN
PROCEDURE (entity: Entity) LengthValue(): LONGINT
Returns the length of the entity's value.
PROCEDURE (entity: Entity) SetEntityValue(entityValue: String)
Class Detail: EntityRef |
Field Detail |
FIELD entity: Entity
After the name has been resolved successfully, this field refers to the internal entity declaration that is being referenced.
FIELD name-: String
The name of the reference.
Constructor Detail |
PROCEDURE InitEntityRef(entRef: EntityRef; name: String; entity: Entity)
Class Detail: Enumeration |
Field Detail |
FIELD nameList-: NameNode
Method Detail |
PROCEDURE (enum: Enumeration) Append(name: String)
PROCEDURE (enum: Enumeration) Matches(VAR name: StringVar): BOOLEAN
Returns TRUE, if one of the names listed in the enumeration matches the string name.
Class Detail: ExternalEntity |
Field Detail |
FIELD baseURI-: URI
The base URI of the external entity. For a document entity, this is the URI passed to XML:Parser.NewChannel, and therefore may be NIL. For other entities, it is either derived from the public or system identifier, and always present.
FIELD codecFactory-: Factory
The factory object that produced the Unicode decoder that is used to access the files contents. If encoding is NIL, the factory is derived by auto detection. Otherwise, the encoding declaration encoding is used to retrieve it.
FIELD encoding-: String
The encoding string from the XML or text declaration. NIL, if no encoding is given.
FIELD ndata-: String
For a parsed entity declaration, this field is NIL. For an unparsed entity, it holds the name of the NDATA.
FIELD public-: String
Public identifier of the external entity. May be NIL.
FIELD standalone-: StandaloneType
The standalone declaration. Only applicable to the document entity.
FIELD system-: String
System identifier of the external entity. This field is never NIL.
FIELD version-: String
The version string from the XML or text declaration. NIL, if the version is omitted.
Method Detail |
PROCEDURE (entity: ExternalEntity) IsDocumentEntity(): BOOLEAN
Redefines: IsDocumentEntity
PROCEDURE (entity: ExternalEntity) SetCodecFactory(codecFactory: Factory)
PROCEDURE (entity: ExternalEntity) SetEncoding(encoding: String)
PROCEDURE (entity: ExternalEntity) SetStandalone(standalone: StandaloneType)
PROCEDURE (entity: ExternalEntity) SetVersion(version: String)
Class Detail: Fragment |
Field Detail |
FIELD next-: Fragment
Refers to the next fragment in the list AttValue.fragmentList.
Constructor Detail |
PROCEDURE InitFragment(f: Fragment)
Class Detail: InternalEntity |
Class Detail: NameCP |
Field Detail |
FIELD name-: String
Constructor Detail |
PROCEDURE InitNameCP(nameCP: NameCP; cpMode: CPModeType; name: String)
Class Detail: NameNode |
Field Detail |
FIELD name-: String
FIELD next-: NameNode
Class Detail: Namespace |
Field Detail |
FIELD declList-: Declaration
Refers to the first element of the list of declarations. The other declarations can be reached through Declaration.next.
Constructor Detail |
PROCEDURE NewNamespace(): Namespace
Method Detail |
PROCEDURE (ns: Namespace) Add(decl: Declaration): BOOLEAN
Adds the declaration decl to the namespace ns. Nothing is done if the namespace already contains a declaration of the same name. In this case, the value FALSE is returned. If the declaration was added to the namespace, then the result is TRUE.
PROCEDURE (ns: Namespace) Get(name: String): Declaration
Class Detail: NamespaceDeclaration |
Field Detail |
FIELD prefix-: String
The prefix being declared. Syntactically, this is the part of the attribute name following the xmlns: prefix. If the attribute name is simply xmlns, this field is NIL.
FIELD uri-: StringURI
The absolute URI (plus optional fragment identifier) of the namespace being declared. It may be NIL if the attribute name is xmlns.
Constructor Detail |
PROCEDURE NewNamespaceDeclaration(prefix: String; uri: StringURI): NamespaceDeclaration
Class Detail: Notation |
Field Detail |
FIELD baseURI-: URI
The base URI of the external entity. For a document entity, this is the URI passed to XML:Parser.NewChannel, and therefore may be NIL. For other entities, it is either derived from the public or system identifier, and always present.
FIELD public-: String
Public identifier. May be NIL.
FIELD system-: String
System identifier. May be NIL.
Class Detail: RegexpInfo |
Class Detail: SeqCP |
Field Detail |
FIELD list-: CP
Constructor Detail |
PROCEDURE InitSeqCP(seqCP: SeqCP; cpMode: CPModeType; list: CP)
Type Detail |
TYPE AttributeType = SHORTINT
Indicates the type of an attribute. See attrCDATA et al.
TYPE CPModeType = SHORTINT
TYPE Char = Char
Character type used to store names and character data from an XML document.
TYPE CharPos = CharPos
This integer type is used to store the position of a character in the input buffer or in a string.
TYPE ContentType = SHORTINT
TYPE DefaultType = SHORTINT
Indicates the defaulting mode of an attribute declaration. One of attrRequired, attrImplied, attrDefault, or attrFixed.
TYPE ElementWhitespaceType = SHORTINT
TYPE EntityType = SHORTINT
Values of this type indicate the type of an entity. See entityInternalGeneral et al.
TYPE StandaloneType = SHORTINT
Used to store information about the `standalone' of an XML declaration. One of standaloneYes, standaloneNo, standaloneNotPresent, or standaloneNotApplicable.
TYPE String = CharArray
A pointer to an array of Char.
TYPE StringURI = POINTER TO ARRAY OF CHAR
TYPE StringVar = ARRAY OF Char
An open array with Char as element type.
Procedure Detail |
PROCEDURE GetString(VAR string: ARRAY OF Char; start: LONGINT; end: LONGINT): String
PROCEDURE GetStringURI(VAR string: ARRAY OF CHAR; start: LONGINT; end: LONGINT): StringURI
PROCEDURE GetStringValue(string: ARRAY OF Char): String
Variable Detail |
VAR undefAttr-: AttrDecl
Constant Detail |
CONST attrCDATA
CONST attrDefault
CONST attrENTITIES
CONST attrENTITY
CONST attrENUMERATED
CONST attrFixed
CONST attrID
CONST attrIDREF
CONST attrIDREFS
CONST attrImplied
CONST attrNMTOKEN
CONST attrNMTOKENS
CONST attrNOTATION
CONST attrRequired
CONST contentANY
CONST contentChildren
CONST contentEMPTY
CONST contentMixed
CONST cpOnce
CONST cpOptional
CONST cpRepeat0
CONST cpRepeat1
CONST elementWhitespaceNo
If the document source for a character sequence does not match the S production (for example, because it includes a non-whitespace character, a character reference, or is a CDATA section), then XML:Builder.Characters.elementWhitespace is elementWhitespaceNo.
CONST elementWhitespaceUnknown
If the document source matches the production S, but the parser does not know if the current element permits only element content, then the character data is flagged as elementWhitespaceUnknown.
CONST elementWhitespaceYes
This flag is used if the document source matches the production S, the parser is validating, and the current element only permits element content.
CONST entityDocument
Document entity. It represents the top-level entity of a document, the one that holds the internal DTD subset and the root element.
CONST entityExternalDTDSubset
Entity representing the external DTD subset.
CONST entityExternalGeneral
External general entity.
CONST entityExternalParameter
External parameter entity. Such entities do not appear in the XML infoset.
CONST entityInternalGeneral
Internal general entity.
CONST entityInternalParameter
Internal parameter entity. Such entities do not appear in the XML infoset.
CONST entityUnparsed
Unparsed external general entity.
CONST standaloneNo
CONST standaloneNotApplicable
CONST standaloneNotPresent
CONST standaloneYes