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!

Reply via email to