Hi,

You haven't provided nearly enough information for someone to say what's
happening here without speculating a lot. Would probably help if you shared
your schema and an instance document which produces this error with the
mailing list.

Note that you're not actually even using Xerces but rather the fork
(com.sun.org.apache.xerces.internal.*) of the Xerces codebase which Sun
develops/maintains and releases in their JDK. It tends to have bugs which
were fixed in Apache long ago and others which never existed here in the
first place. Also the fact that XML Spy and some other tool think you're
document is valid doesn't necessarily mean it is. What does the spec say?

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

srini21 <[EMAIL PROTECTED]> wrote on 05/22/2008 10:25:38 AM:

> Hello All.. I am stuck up here. I am trying to marshall and Jaxb Object
and
> validating  it against a xsd.
>
> During this process of validation, the parser when reads the xsd  fails
with
> the below error.  The  schema xsd is a working xsd from a webservice
> provider. The validation is fine when it is done on XML Spy and SOAP UI.
BUt
> when this xerces  xmlschema validator comes to picture its even not able
to
> parse the XSD for validating it.
>
>
> Please suggeest any help...
>
>
> Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.2: ' '
is
> not a valid value of list type 'null'.
>    at
> com.sun.org.apache.xerces.internal.jaxp.validation.Util.
> toSAXParseException(Util.java:109)
>    at
> com.sun.org.apache.xerces.internal.jaxp.validation.
> ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104)
>    at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.
> reportError(XMLErrorReporter.java:382)
>    at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.
> reportError(XMLErrorReporter.java:316)
>    at
> com.sun.org.apache.xerces.internal.impl.xs.
>
XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)

>    at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.
> reportSchemaError(XMLSchemaValidator.java:3185)
>    at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.
> elementLocallyValidType(XMLSchemaValidator.java:3113)
>    at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.
> processElementContent(XMLSchemaValidator.java:3025)
>    at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.
> handleEndElement(XMLSchemaValidator.java:2178)
>    at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.
> endElement(XMLSchemaValidator.java:814)
>    at
> com.sun.org.apache.xerces.internal.jaxp.validation.
> ValidatorHandlerImpl.endElement(ValidatorHandlerImpl.java:345)
> --
> View this message in context: http://www.nabble.com/xmlschema-
> validator-..ParsingException.-tp17405419p17405419.html
> Sent from the Xerces - J - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to