- From: Franz-Josef Herpers <franz-josef.herpers@spmtechnologies.com>
- Date: Mon, 25 Feb 2002 12:11:43 +0100
- To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Hi Giuseppe, did you set the schema (http://apache.org/xml/features/validation/schemafeature) to true? Cheers Franz > -----Ursprüngliche Nachricht----- > Von: Monticelli, Giuseppe [mailto:Giuseppe.Monticelli@comdirect.de] > Gesendet: Freitag, 22. Februar 2002 16:01 > An: xmlschema-dev@w3.org > Betreff: 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 " "> > <!ENTITY lt "&#60;"> > <!ENTITY gt ">"> > <!ENTITY amp "&#38"> > <!ENTITY apos "'"> > <!ENTITY quot """> > <!ENTITY euro "€"> > ]> > > <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 Monday, 25 February 2002 06:12:29 UTC