I think the problem may be that I put the text in CDATA blocks....

As soon as I remove them I get the error:

Caused by: org.xml.sax.SAXParseException: The entity "x00FC" was 
referenced, but not declared. 

If "&x00E4" is standard why is SAX complaining?  Do I have to specifiy
something or can I tell SAX to ignore them?

I haven�t tried DOM because I used the example that I found at the Xalan
homepage...

Thanks,

Michael



-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 27. November 2002 14:28
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: re: The entity "x00FC" was referenced, but not declared.

Michael:
the &x00E4 and & ... are ALL xml entities.
Your SAX Parser should recognise these well formed XML entities
Have you tried DOM instead of SAX?
Tak,
Martin Gainty
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official
business of Laconia Data Systems (LDS) is proprietary to the company. It
is confidential, legally privileged and protected by law.�LDS does not
own and endorse any other content. Views and opinions are those of the
sender unless clearly stated as being that of LDS. 
The person addressed in the e-mail is the sole authorised recipient.
Please notify the sender immediately if it has unintentionally reached
you and do not read, disclose or use the content in any way.
LDS�can not assure that the integrity of this communication has been
maintained nor that it is free of errors, virus, interception or
interference.
�������������_____________GMT-5___________________
�
>From: "Michael Delamere" 
>To: 
>Subject: re: The entity "x00FC" was referenced, but not declared. 
>Date: Wed, 27 Nov 2002 12:40:49 +0100 
>MIME-Version: 1.0 
>Received: from apache.org ([63.251.56.142]) by
mc1-f22.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 27
Nov 2002 03:40:55 -0800 
>Received: (qmail 92896 invoked by uid 500); 27 Nov 2002 11:40:51 -0000 
>Received: (qmail 92888 invoked from network); 27 Nov 2002 11:40:51
-0000 
>Received: from morelogs4.e.revmap.vianetworks.de (HELO
mail.morelogs.de) (194.77.120.204) by daedalus.apache.org with SMTP; 27
Nov 2002 11:40:51 -0000 
>Received: from [194.77.120.202] (helo=mdelamere)by mail.morelogs.de
with esmtp (Exim 3.34 #5)id 18H0Yj-0005DO-00for
[EMAIL PROTECTED]; Wed, 27 Nov 2002 12:40:49 +0100 
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 
>Precedence: bulk 
>list-help: 
>list-unsubscribe: 
>list-post: 
>Delivered-To: mailing list [EMAIL PROTECTED] 
>Message-ID: <[EMAIL PROTECTED]> 
>X-Priority: 3 (Normal) 
>X-MSMail-Priority: Normal 
>X-Mailer: Microsoft Outlook, Build 10.0.2616 
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 
>Importance: Normal 
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 
>Return-Path:
[EMAIL PROTECTED] 
>X-OriginalArrivalTime: 27 Nov 2002 11:40:55.0920 (UTC)
FILETIME=[D8FE1F00:01C29609] 
> 
>Ok, forget the question below - I have solved that :-) ! 
> 
>The other problem I have now is that the entities are being changed! 
> 
>i.e. &x00E4; is turned into &x00E4; 
> 
>Is there a way of stopping this? 
> 
>Thanks, 
> 
>Michael 
> 
> 
> 
> > -----Original Message----- 
> > From: Michael Delamere [mailto:[EMAIL PROTECTED] 
> > Sent: Mittwoch, 27. November 2002 10:30 
> > To: [EMAIL PROTECTED] 
> > Subject: The entity "x00FC" was referenced, but not declared. 
> > 
> > Hi, 
> > 
> > I am trying to convert data which I retrieve out of the db into
HTML. 
> > The xml data contains entities such as &x00E4; which causes SAX to 
>throw 
> > an exception. 
> > 
> > XML: 
> > dichtgedr&x00E4;ngt 
> > 
> > Error: 
> > Caused by: org.xml.sax.SAXParseException: The entity "x00FC" was 
> > referenced, but not declared. 
> > 
> > I�m fairly new to all this and google hans�t really helped me on
this 
> > one. Can someone tell me what needs to be done to solve this. 
> > 
> > Any help would be really appreciated! 
> > 
> > Regards, 
> > 
> > Michael 



MSN 8 with e-mail virus protection service: 2 months FREE*

Reply via email to