Changeset 135 for trunk/src/xmlmodel.h


Ignore:
Timestamp:
May 6, 2008, 11:53:48 AM (11 years ago)
Author:
lindanl
Message:

SymbolTable? class and end tag checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmlmodel.h

    r126 r135  
    3131
    3232#include "contentmodel.h"
     33#include "symtab.h"
    3334enum XML_version {XML_1_0, XML_1_1, no_XML_version_value};
    3435/* Documents may be encoded in accord with either XML 1.0 or XML 1.1,
     
    8485/* Possible kinds of attribute default in ATTLIST declarations. */
    8586
    86 struct eqstr
    87 {
    88   bool operator()(const char* s1, const char* s2) const
    89   {
    90     return strcmp(s1, s2) == 0;
    91   }
    92 };
    9387
    9488class ATT_info {
     
    170164        char * external_DTD_systemLiteral;
    171165        char * external_DTD_pubidLiteral;       
    172 
     166        Symbol_Table * symbol_table;
    173167   
    174168        /* Information computed from ATTLIST, ELEMENT, NOTATION and ENTITY declarations. */
     
    180174        hash_map<int, int > GlobalPEntityTable;
    181175       
    182         hash_map<const char *, int, hash<const char *>, eqstr > GlobalNameTable;
     176       
    183177        int globalElementCount;
    184178        int globalAttributeCount;
     
    186180        int globalGEntityCount;
    187181        int globalPEntityCount;
    188         int globalNameCount;
    189182    /* For each element, we have an ElementAttributeModel */
    190183        vector<vector<ATT_info *> > ElementAttributeData;
Note: See TracChangeset for help on using the changeset viewer.