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,cust
> 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]

Reply via email to