Hi!

I've tried it and the result was the same. First I thought that my own input
source might have been
the wrong one but the MemBufInputSource did not help either.
The answer is that the ExternalNoNamespaceSchemaLocation must be specified
but with a fake system id.

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 1:35 AM
Subject: Re: schema question


> 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]
>
>



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

Reply via email to