PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFXXMLGrammar
[XML] Base class of grammars such as DTD or XML Schema.
#include <SFXXMLGrammar.hpp>
class SFXXMLGrammar;
SFMTYPEDEFCLASS(SFXXMLGrammar)

Inheritance diagram

 Inheritance diagram of SFXXMLGrammarClass

Description

The SFXXMLGrammar class is the base class of grammars such as DTD or XML Schema. In this class, element, attribute, verification interface are defined.

Reference

SFXXMLDOMParser | SFXXMLSAXParser | SFXXMLDOMParser::SetGrammar | SFXXMLSAXParser::SetGrammar

Member

Constructor/Destructor
SFXXMLGrammar( Void )
Constructor of the SFXXMLGrammar class.
~SFXXMLGrammar( Void )
Destructor of the SFXXMLGrammar class.
Types
GrammarType
XMLATTR
Data structure for attibutes.

SFXXMLGrammar::SFXXMLGrammar
Constructor of the SFXXMLGrammar class.
[ protected, explicit ]
SFXXMLGrammar(Void);

SFXXMLGrammar::~SFXXMLGrammar
Destructor of the SFXXMLGrammar class.
[ public, virtual ]
virtual ~SFXXMLGrammar(Void);

SFXXMLGrammar::GrammarType
enum GrammarType {
    GRAMMAR_DTD,
    GRAMMAR_SCHEMA,
    GRAMMAR_UNKNOWN
};

Description

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)


SFXXMLGrammar::XMLATTR
Data structure for attibutes.
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)

Description

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