Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-684

Add accessor to XMLScanner to get the current grammar type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • None
    • Operating System: All
      Platform: All
    • 13709

    Description

      XMLScanner caches the current grammar type in a member variable. It would be
      great if this could be exposed through an accessor. A patch follows:

      cvs z9 diff XMLScanner.cpp XMLScanner.hpp (in directory V:\xml
      xerces\c\src\xercesc\internal)
      Index: XMLScanner.cpp
      ===================================================================
      RCS file: /home/cvspublic/xml-xerces/c/src/xercesc/internal/XMLScanner.cpp,v
      retrieving revision 1.22
      diff -r1.22 XMLScanner.cpp
      218a219
      > , fGrammarType(Grammar::UnknownGrammarType)
      Index: XMLScanner.hpp
      ===================================================================
      RCS file: /home/cvspublic/xml-xerces/c/src/xercesc/internal/XMLScanner.hpp,v
      retrieving revision 1.11
      diff -r1.11 XMLScanner.hpp
      488a489,490
      > Grammar::GrammarType getCurrentGrammarType() const;
      >
      1240a1243,1248
      >
      > inline Grammar::GrammarType XMLScanner::getCurrentGrammarType() const
      >

      { > return fGrammarType; > }

      >

      ****CVS exited normally with code 1****

      cvs z9 diff Grammar.hpp (in directory V:\xml
      xerces\c\src\xercesc\validators\common)
      Index: Grammar.hpp
      ===================================================================
      RCS file: /home/cvspublic/xml-
      xerces/c/src/xercesc/validators/common/Grammar.hpp,v
      retrieving revision 1.3
      diff -r1.3 Grammar.hpp
      121a122
      > , UnknownGrammarType

      ****CVS exited normally with code 1****

      Attachments

        Activity

          People

            Unassigned Unassigned
            david_n_bertoni@lotus.com David Bertoni
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: