DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13709>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13709 Add accessor to XMLScanner to get the current grammar type Summary: Add accessor to XMLScanner to get the current grammar type Product: Xerces-C++ Version: 2.1.0 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Validating Parser (Schema) (Xerces 1.5 or up only) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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***** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
