Xerces2 and DTD together with Schema

Good mornig.

When I try to use an internal DTD declaration in my XML instance (to handle
entities), the Xerces 2 parser can't find the defined Schema. So all
elements defined in the Schema are invalid for him (while not in the DTD).
Here is the whole XML instance:


		<?xml version="1.0" encoding="ISO-8859-1"?>

		<!DOCTYPE system [
			<!ENTITY comhomeUsecases SYSTEM
"comhomeUsecases.xml">
			<!ENTITY comhomeNews SYSTEM "comhomeNews.xml">
			<!ENTITY comhomeHilfe SYSTEM "comhomeHilfe.xml">
			<!ENTITY general SYSTEM "general.xml">
			<!ENTITY service SYSTEM "service.xml">
	
			<!ENTITY nbsp "&#32;">
			<!ENTITY lt "&#38;#60;">
			<!ENTITY gt "&#62;">
			<!ENTITY amp "&#38;#38">
			<!ENTITY apos "&#39;">
			<!ENTITY quot "&#34;">
			<!ENTITY euro "&#8364;">
		]>

		<system name="transactions" 
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        		 xsi:noNamespaceSchemaLocation="languages.xsd">
	
			 &comhomeUsecases;
	 		 &comhomeNews;
	 		 &comhomeHilfe;
	
	 		 &general;
	 		 &service;

		</system>



I use JAXP 1.1 in Visual Age 3.5 for Java.

***The internal parser of Xml Spy 4.2 works wonderful, and doesn't know this
problem.***

Does anyone know a solution or have an explication?

Thank You in advance,

Giuseppe Monticelli, Quickborn (Germany)


---------------------------------------------------------------------------------
comdirect bank Aktiengesellschaft
Pascalkehre 15, 25451 Quickborn
(HRB 4889 Pinneberg)
Internet: www.comdirect.de

Vorstand: Dr. Andre Carls, Christian Jessen, Hans-Joachim Nitschke, Bernt Weber.
Vorsitzender des Aufsichtsrates: Klaus-Peter Mueller

Received on Saturday, 23 February 2002 05:17:12 UTC