Re: [xml] transform



On Mon, Mar 10, 2003 at 07:17:12PM -0700, John Fleck wrote:
On Mon, 2003-03-10 at 11:02, rc wrote:
Hi,
How to transform xml string to string with particular encoding ?
(é -> &eacute)

I'm not sure I understand the question.

  The question is simply wrong. Using eacute is not a matter of
using an encoding, but to map back some character (or strings) to
entities references.
Basically the answer is no. eacute is not an XML predefined
entity. There is no way the XML serialization engine will guess that
a given char need to be encoded back to an entity reference, or not.
To do that post process the output but that should not be needed from
and XML point of view.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]