(See attached file: personal3.xsd)(See attached file: personal3.xml)

I did a small change in them and it validates with me.




|--------+----------------------->
|        |          "Karen       |
|        |          Aroutiounov" |
|        |          <karen@ipmce.|
|        |          ru>          |
|        |                       |
|        |          03/07/2002   |
|        |          10:36 AM     |
|        |          Please       |
|        |          respond to   |
|        |          xerces-c-dev |
|        |                       |
|--------+----------------------->
  >----------------------------------------------------------------------------|
  |                                                                            |
  |       To:     [EMAIL PROTECTED]                                  |
  |       cc:     (bcc: Fernando Jeronymo/SIAC)                                |
  |       Subject:     Schema validation failure                               |
  >----------------------------------------------------------------------------|




I have described schema in file personal3.xsd and designed document
personal-schema3.xml.

When try to parse personal-schema3.xml I get the following error:

Error at file "personal-schema3.xml", line 7, column 16
   Message: Element 'person' is not valid for content model: '(person)+'
Below is a fragment which creates and initializes parser:

    DOMParser *parser = new DOMParser;
    parser->setValidationScheme(DOMParser::Val_Auto);
    parser->setDoNamespaces(true);
    parser->setDoSchema(true);
    parser->setValidationSchemaFullChecking(true);

    DOMTreeErrorReporter *errReporter = new DOMTreeErrorReporter();
    parser->setErrorHandler(errReporter);

    try
    {
        parser->parse(gXmlFile);
    }
    catch (...)
    {
        cerr << "An error occured during parsing\n " << endl;
    }
If this is not a bug, couldn't you tell me what I'm doing wrong.(See attached
file: personal-schema3.xml)(See attached file: personal3.xsd)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

First Second

Attachment: personal-schema3.xml
Description: Binary data

Attachment: personal3.xsd
Description: Binary data

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

Reply via email to