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]

Reply via email to