[ http://nagoya.apache.org/jira/browse/XERCESC-684?page=history ]
Alberto Massari updated XERCESC-684: ------------------------------------ Priority: Major > Add accessor to XMLScanner to get the current grammar type > ---------------------------------------------------------- > > Key: XERCESC-684 > URL: http://nagoya.apache.org/jira/browse/XERCESC-684 > Project: Xerces-C++ > Type: Bug > Components: Validating Parser (Schema) (Xerces 1.5 or up only) > Versions: 2.1.0 > Environment: Operating System: All > Platform: All > Reporter: David Bertoni > Assignee: Xerces-C Developers Mailing List > > 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***** -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]