How do I make entity references

Hi

Im using a Java API to parse my XML. We use special HTML escape characters 
for danish letters and that is giving me a headache. I cant use a DTD and a 
XML Schema at the same time.

Here is what I try to do:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE asset PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" 
"<http://legolas.dsb.dk:4520/mille/integration/xsd/xhtml-lat1.ent>http://legolas.dsb.dk:4520/mille/integration/xsd/xhtml-lat1.ent">

<asset category="g" description="Pressemeddelelse 15.05.1997#10" 
method="create" name="Pressemeddelelse 15.05.1997#10" 
type="Pressemeddelelse" 
xmlns:html="<http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 
xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="<http://legolas.dsb.dk:4520/futuretense_cs/Samples/integration/indholdstype.xsd>http://legolas.dsb.dk:4520/futuretense_cs/Samples/integration/indholdstype.xsd">

As you can see I use the DOCTYPE at first and then use a schema too using 
the xsi:noNamespaceSchemaLocation attribute to retrieve the schema.

I have turned on validation in the parser which fails as it takes onboard 
the DTD but not the schema. When I do not use the schema the XML Schema 
ref. works fine until it meats the &aelig; entity.

The question might be answered if anybody could tell me how to create an 
entity in my schema that maps &aelig; with &#230;

Thanx in advance!

Kind regards
Michael Nielsen
DSB Informatik
Kalvebod Brygge 32, 5 sal
Tlf: +45 33540086
Email: min@dsb.dk

Received on Monday, 30 September 2002 21:40:23 UTC