Thanks Jeff,

I've upgraded to a the 2.8.0 version and now I get a different error:

cvc-elt.1: Cannot find the declaration of element 'shippingRequest'.
Column: 201 Line: 2 PublicID: null

I haven't been able to find the "normalize-space" thing but I do see

http://apache.org/xml/features/validation/schema/normalized-value

is that the feature you mean?

Again thanks for the help.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Jeff Greif
> Sent: Thursday, April 20, 2006 9:32 AM
> To: [email protected]
> Subject: Re: Xerces 1.4.4, XML, XSD and validation
>
> A hunch: It's possible that you need to tell Xerces to
> "normalize-space" so that the whitespace after the
> shippingRequestTag is not treated as content, making it
> appear that your instance document does not match the content
> model.  See the docs for how to do this in that version of
> Xerces, which is extremely old and should be replaced by
> something newer.
>
> The only thing I noticed that's not quite right about your
> XML is the namespace in the xsi:schemaLocation attribute,
> which does not agree with that of the schema.  However, it's
> obvious from the error message that the schema is being
> found, so that's not the problem.
>
> Jeff
>
> On 4/20/06, Scott Shaver <[EMAIL PROTECTED]> wrote:
> >
> > I'm having trouble with the 1.4.4 xerces trying to validate
> an xml doc
> > against a XSD schema.
> > It always gives me the error shown below. I know it is finding the
> > schema file because when it doesn't I get a exception telling me so.
> >
> > Here are:
> >
> > Error message
> > XML
> > XSD
> > The code
> >
> > ==========================
> > The Error
> > ==========================
> >
> > The content of element type "shippingRequest" must match
> >
> "(order_date,brand_name,shipRequestType,shipHow,exportDocsURL,so,po,cu
> > st omer_po?,shipInstructions?,shipTo,items,comment?)". Column: 19
> > Line: 43
> > PublicID: null
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

SPECIAL NOTICE

All information transmitted hereby is intended only for the use of the
addressee(s) named above and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution
of confidential and privileged information is prohibited. If the reader
of this message is not the intended recipient(s) or the employee or agent
responsible for delivering the message to the intended recipient, you are
hereby notified that you must not read this transmission and that disclosure,
copying, printing, distribution or use of any of the information contained
in or attached to this transmission is STRICTLY PROHIBITED.

Anyone who receives confidential and privileged information in error should
notify us immediately by telephone and mail the original message to us at
the above address and destroy all copies.  To the extent any portion of this
communication contains public information, no such restrictions apply to that
information. (gate01)

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

Reply via email to