Thanks for bringing the schema level to my attention.
I have changed my schema to the following, and I am still
getting the same error:
Attribute "xmlns" must be declared for element type "doc". at line 2,
column 12.
No validator for datatype DocumentType
My new schema file is:
<schema xmlns="http://www.w3.org/1999/XMLSchema">
<element name="doc" type="DocumentType"/>
<type name="DocumentType">
<attribute name="xmlns" type="string"/>
</type>
</schema>
Any ideas?
Cheers,
Tammam
"Ted Leung" <[EMAIL PROTECTED]> on 03/30/2000 02:43:05 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Re: Schema Validation with Xerces-J
Go back and read the schema documentation.
Your schema file is using the latest syntax and our
support is at the 12/17 draft level.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 29, 2000 2:23 PM
Subject: Re: Schema Validation with Xerces-J
>
>
>
>
> Now I am past the socket connection problem, thanks to Mike Hucka,
> but still can't get the validation working.
>
> Here's my XML file (foo_schema.xml) :
>
> <?xml version="1.0"?>
> <doc xmlns="foo.xsd">Hello</doc>
>
>
> And here's my Schema file (foo.xsd):
>
> <schema xmlns="http://www.w3.org/1999/XMLSchema">
> <element name="doc" type="DocumentType"/>
> <complexType name="DocumentType">
> <attribute name="xmlns" type="string"/>
> </complexType>
> </schema>
>
> I get the following error:
>
> Attribute "xmlns" must be declared for element type "doc". at line 2,
> column 12.
> No validator for datatype DocumentType
>
>
> What am I doing wrong?
> Any help is greatly appreciated.
>
>
> Cheers,
>
>
> Tammam
>
>
>
>