Hi Molnar,

(Hope I got your name the right way round.  :) )

Have you looked at xercesc/framework/MemBufInputSource?  Seems that if you
used that instead of your own inputSource extension, all might go well.

Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  905-413-3519, T/L 969-3519
E-mail:  [EMAIL PROTECTED]




|---------+----------------------------->
|         |           "Molnar Ferenc    |
|         |           Tamas"            |
|         |           <molnar.ferenc@dan|
|         |           ubisoft.hu>       |
|         |                             |
|         |           02/20/2003 06:42  |
|         |           AM                |
|         |           Please respond to |
|         |           xerces-c-dev      |
|         |                             |
|---------+----------------------------->
  
>---------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                                         |
  |       To:       <[EMAIL PROTECTED]>                                      
                                                         |
  |       cc:                                                                          
                                                         |
  |       Subject:  schema question                                                    
                                                         |
  |                                                                                    
                                                         |
  |                                                                                    
                                                         |
  
>---------------------------------------------------------------------------------------------------------------------------------------------|



Hello!

I'd like to know how is it possible to preparse a schema string and use it
in the sax parser without giving the ExternalNoNamespaceSchemaLocation.
I tried the following but it did not work.

MyStringInput stringInput( strData ); //My derived class from InputSource
parser->loadGrammar( stringInput, ::Grammar::SchemaGrammarType, true );
parser->setValidationScheme( ::SAXParser::Val_Always );
parser->useCachedGrammarInParse( true );

It would be very important to use the schema from the code, so I'd like to
create a string not a file.
Thanks!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to