Use the following method:

parser->setExternalSchemaLocation ("http://www.my.com schemaFile.xsd");




|--------+-------------------------->
|        |          "Martinetti,    |
|        |          Fabio"          |
|        |          <fabio.martinett|
|        |          [EMAIL PROTECTED]>      |
|        |                          |
|        |          03/07/2002 12:19|
|        |          PM              |
|        |          Please respond  |
|        |          to xerces-c-dev |
|        |                          |
|--------+-------------------------->
  >----------------------------------------------------------------------------|
  |                                                                            |
  |       To:     "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>|
  |       cc:     (bcc: Fernando Jeronymo/SIAC)                                |
  |       Subject:     SAX2 validation with schema                             |
  >----------------------------------------------------------------------------|





Hi

How can i inform the SAX2 parser where to find the schema file,
if in the message to parse there is no schema location?

i tried the following implementation:

   SAX2XMLReader* myParser = XMLReaderFactory::createXMLReader();
   ....
   myParser->setProperty(XMLString::transcode("http://apache.org/xml
     /properties/schema/external-noNamespaceSchemaLocation"),
   XMLString::transcode("file:///unittest/queryinvoice02.xsd"));

but i got a stack overflow!

can anybody help me??


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