Hi Sevastian,

take a look at the XMLWriter.escapeElementEntities(String) method. I know it's protected so you probably can't access it from within your sources, but if this fits your needs, we could move that code to some util class.

you can find that method here:
http://www.dom4j.org/xref/org/dom4j/io/XMLWriter.html#1380

Maarten

Sevastian `Seva` Foglia wrote:

Hi all, I'm new member of this list.
I have a problem with method getText of Node class.
If the XPath of node contains a character like à or è (in XML they are coded with &#224; or &#232;), the method getText returns a String value decoded. For example getText applied to this node <why>perch&#232;</why> return the value "perchè".
Well, I want a method which returns a String containing "perch&#232;". I didn't find a method which does this.
My XML tree is in a file that I read using SAXReader.
Bye, Seva



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id?66&op=click
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user




-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to