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=9325>. 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=9325 Please add accessors to sax2 parser and xml scanner classes ------- Additional Comments From [EMAIL PROTECTED] 2002-05-22 19:20 ------- Sorry about the last email; I should have posted it directly to the bug database. Would someone mind making these changes to Xerces: ########################################## My additions to the XMLScanner class are: // ----------------------------------------------------------------------- // Getter methods // ----------------------------------------------------------------------- /** * When constructing dynamic class schemata in C++ for corresponding XMLSchema, * one needs to get at all XMLSchema information. Since the default mechanisms to report type * are insufficient, we need to get at the grammar resolvers and switch * between grammars. * * @return The grammar resolver for the scanner. */ const GrammarResolver* getGrammarResolver() const; AND ALSO: / --------------------------------------------------------------------------- / XMLScanner: Getter methods / --------------------------------------------------------------------------- inline const GrammarResolver* XMLScanner::getGrammarResolver() const { return fGrammarResolver; } ########################################## My changes to the SAX2XMLReaderImpl class is to add one accessor to the scanner: /** Get the scanner used by this XMLReader. * * Often times when dealing with XML Schema, one needs to get at full * schema information. To do this you need to get at the XMLScanner. * * @return the scanner */ XMLScanner* getScanner() const; // --------------------------------------------------------------------------- // SAX2XMLReader: Getter methods // --------------------------------------------------------------------------- inline XMLScanner* SAX2XMLReaderImpl::getScanner() const { return fScanner; } ########################################## To the SAX2XMLReader add a pure virtual: /** * This method is used to get the current scanner. * * <b>SAX2XMLReader assumes responsibility for the scanner. It will be * deleted when the SAX2XMLReader is destroyed.</b> * * @return A pointer to the scanner. An application should not deleted * the object returned. * */ virtual XMLScanner* getScanner() const = 0; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
