David Lindquist schrieb:
:
> I am using SAX 2.0 and Xerces-J 1.4.1. I have verified that the schema is
> well-formed. The parsing worked fine when I referenced a DTD. Why can I not
> simply change the document type declaration to reference the schema file? Or
> does Xerces-J 1.4.1 not support schemas in this way?
:
In difference to the DTD reference
<!DOCTYPE rootnode SYSTEM "my.dtd">
the reference to a schema must be made with
<rootnode
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation='my.xsd'>
:
</rootnode>
It's not possible to only change the "my.dtd" to "my.xsd"!
Hope this helps,
Andi.
--
---------------------------------------------------- _____
Andreas Th�nnessen mailto:[EMAIL PROTECTED] /|
Philosys Software GmbH http://www.philosys.de/ /_|
---------------------------------------------------- / |begin:vcard
n:Th�nnessen;Andreas
tel;cell:(+49)-175-9633552
tel;fax:(+49)-89-321407-12
tel;home:(+49)-8031-807856
tel;work:(+49)-89-321407-22
x-mozilla-html:FALSE
url:http://www.philosys.de/
org:Philosys Software GmbH;<BR><DIV align="left"><IMG SRC=http://www.philosys.de/~andreas/img/philosys.gif></DIV>
adr:;;Edisonstr. 6;Unterschlei�heim;Bayern;85716;Germany
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl. Ing. FH Elektrotechnik / Datentechnik
fn:Andreas Th�nnessen
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]