![]() ![]() ![]()
|
BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1 |

The SFXXMLGrammar class is the base class of grammars such as DTD or XML Schema. In this class, element, attribute, verification interface are defined.
| Constructor/Destructor |
|---|
|
SFXXMLGrammar( Void ) Constructor of SFXXMLGrammar class.
|
|
~SFXXMLGrammar( Void ) Destructor of SFXXMLGrammar class.
|
| Types |
|---|
|
GrammarType |
|
XMLATTR Data structure for attibutes.
|
[ protected, explicit ] SFXXMLGrammar(Void);
[ public, virtual ] virtual ~SFXXMLGrammar(Void);
enum GrammarType {
GRAMMAR_DTD,
GRAMMAR_SCHEMA,
GRAMMAR_UNKNOWN
};
| GrammarType | Description |
|---|---|
| GRAMMAR_DTD | Verification for an XML document with DTD |
| GRAMMAR_SCHEMA | Verification for an XML document with XML Schema |
| GRAMMAR_UNKNOWN | Verification for an XML document with unknown grammar (default) |
typedef struct _XMLAttribute {
enum AttTypes {
CData = 0,
ID = 1,
IDRef = 2,
IDRefs = 3,
Entity = 4,
Entities = 5,
NmToken = 6,
NmTokens = 7,
Notation = 8,
Enumeration = 9,
Simple = 10,
Any_Any = 11,
Any_Other = 12,
Any_List = 13,
AttTypes_Count ,
AttTypes_Min = 0,
AttTypes_Max = 13,
AttTypes_Unknown = -1
};
enum DefAttTypes {
Default = 0,
Fixed = 1,
Required = 2,
Required_And_Fixed = 3,
Implied = 4,
ProcessContents_Skip = 5,
ProcessContents_Lax = 6,
ProcessContents_Strict = 7,
Prohibited = 8,
DefAttTypes_Count,
DefAttTypes_Min = 0,
DefAttTypes_Max = 8,
DefAttTypes_Unknown = -1
};
Bool _externalAttr;
AttTypes _type;
DefAttTypes _defaultType;
UInt32 _colonPos;
SFXAnsiString _attName;
SFXAnsiString _enumeration;
SFXAnsiString _value;
}XMLATTR,*LPXMLATTR;
SFMTYPEDEFALIAS(SFXArray<LPXMLATTR>, XMLAttrList)
| Value | Description |
|---|---|
| _externalAttr | whether the attribute is external or not |
| _type | type of the attribute |
| _defaultType | default type of the attribute |
| _colonPos | position of the colon in the name of the attribute with namespace |
| _attName | name of the attribute (with namespace URI) |
| _enumeration | enumeration type of the attribute, which is defined by enumerating attributes or values |
| _value | value of attribute |
|
Copyright (C) 2002 - 2009 Sophia Cradle, Inc. All Rights Reserved. |
![]() ![]() ![]()
|