Hi Samuel,

You need use the -s option as well (this corresponds to the feature
http://apache.org/xml/features/validation/schema). This will turn on
schema validation. When you don't supply the parser will attempt to
validate against a DTD, hence the error messages you received.

On Mon, 23 Feb 2004, Samuel Cheung wrote:

>
> I am trying to use the Counter example to validate (I use the "-v" option)
> the personal-schema.xml in the data directory in the sample.
>
> But I get these errors instead, could someone please tell me why?
>
> [Error] personal-schema.xml:2:11: Document is invalid: no grammar found.
> [Error] personal-schema.xml:2:11: Document root element "personnel", must
> match DOCTYPE root "null".
> personal-schema.xml: 187;16;0 ms (37 elems, 14 attrs, 0 spaces, 268 chars)

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

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

Reply via email to