[ 
http://issues.apache.org/jira/browse/XERCESC-1345?page=comments#action_59331 ]
     
Gareth Reakes commented on XERCESC-1345:
----------------------------------------

There is something strange going on here! Its not quite the problem you think. 
Both of your doucuments are invalid. You specify elementFormDefault="qualified" 
which means that the elements in your instance file must be qualified. So the 
real problem is that the first time it has not picked that up. If you change 
them to be qualified it reports both attemps at validation of c.xml to be valid.

> Validating correct xml fails after validating invalid one.
> ----------------------------------------------------------
>
>          Key: XERCESC-1345
>          URL: http://issues.apache.org/jira/browse/XERCESC-1345
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.5.0
>  Environment: Linux
>     Reporter: mind
>     Priority: Critical
>  Attachments: bug.tar.gz
>
> I do following:
> 1. create saxparser and set caching grammars
> 2. load schema >3<
> 3. validate >1<  => valid
> 4. validate >2<  => invalid
> 5. validate >1<  => invalid (WRONG !!!)
> >1<
> <?xml version="1.0"?>
> <content xmlns="http://mind.p4.com/mytest"/>
> >2<
> <?xml version="1.0"?>
> <content></content>
> >3<
> <?xml version="1.0"?>
> <xs:schema elementFormDefault="qualified" 
> targetNamespace="http://mind.p4.com/mytest"; xmlns="http://mind.p4.com/mytest"; 
> xmlns:xs="http://www.w3.org/2001/XMLSchema";>
>  <xs:element name="content" type="xs:anyType"/>
> </xs:schema>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to