[ https://issues.apache.org/jira/browse/XERCESC-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alberto Massari resolved XERCESC-1481. -------------------------------------- Resolution: Fixed Fix Version/s: 3.1.0 Assignee: Alberto Massari A fix is in SVN > lax assessment > -------------- > > Key: XERCESC-1481 > URL: https://issues.apache.org/jira/browse/XERCESC-1481 > Project: Xerces-C++ > Issue Type: Bug > Components: Validating Parser (XML Schema) > Affects Versions: 2.6.0 > Environment: Windows 2000, Visual C++ 7.1 > Reporter: Bernhard Jungk > Assignee: Alberto Massari > Priority: Minor > Fix For: 3.1.0 > > > I'm trying to validate some xml files like the following example against a > xml schema. > > <?xml version="1.0" encoding="UTF-8" ?> > <tag > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:ns="ns" > xsi:schemaLocation="ns ns.xsd" > xsi:type="ns:type"> > </tag> > > The parser reports an error: > > Message:Unknown element 'tag' > > My understanding of the XML Schema standard is, that it's possible to switch > to lax assessment for the element-tag. This would validate the element > against the complex type ns:type defined in the schema file named ns.xsd. > My understanding is based upon Xml Schema Part: 1 §5.2 (1) and §3.3.4 > (Validation Rule: Schema-Validity Assessment (Element)). > > §5.2 http://www.w3.org/TR/xmlschema-1/#validation_outcome > §3.3.4 http://www.w3.org/TR/xmlschema-1/#c-td > > If my understanding is correct, is it possible to get this behavior with > the current Xerces-C version without ignoring the error (which means > ignoring all non-fatal errors) ? > > Xerces-J 2 doesn't issue an error. I didn't try any other parser. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org