Hi,

I'm trying to validate a schema using Xerces-J but seem to be doing
something wrong.  I tried using the Counter example with this schema:

<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema";
        targetNamespace="test"
        xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";
        xsi:schemaLocation=
                        "http://www.w3.org/2001/XMLSchema
                         http://www.w3.org/2001/XMLSchema.xsd";>
    <element name="fullName" type="string"/>
</schema>

using the call

java dom.Counter -s -f test.xsd

and I get

[Error] test.xsd:7:65: cvc-elt.1: Cannot find the declaration of element
'schema'.
test.xsd: 651;30;0 ms (2 elems, 6 attrs, 0 spaces, 6 chars)

Shoudn't this work?

Thanks,
Allen

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

Reply via email to