Re: "Re: [xml] serialization to UTF-16LE"
- From: Daniel Veillard <veillard redhat com>
- To: Kasimier Buchcik <kbuchcik 4commerce de>
- Cc: xml gnome org
- Subject: Re: "Re: [xml] serialization to UTF-16LE"
- Date: Mon, 3 Nov 2003 07:59:32 -0500
On Mon, Nov 03, 2003 at 01:47:48PM +0100, Kasimier Buchcik wrote:
Kasimier Buchcik wrote:
I get different serialized results for text-nodes and attribute-values
if using "xmlSaveFormatFileTo" (note that I'm using values like "öäü?").
Well, right this looks strange but text node and attribute-values must have
different serialization routines anyway (line-feed need to be escaped as
character reference for example).
The resulting xml:
<?xml version="1.0" encoding="UTF-16LE"?>
<foo bar="äöü">öäü?</foo>
Sorry, it has to be:
<?xml version="1.0" encoding="UTF-16LE"?>
<foo bar="äöü€">öäü?</foo>
The attribute value is escaped, the text-nodes value not.
Since I did not found anything in the specs that states, that attribute
values need to be excaped, although they *could* be serialized with the
stated encoding (UTF-16LE), I'm asking for help on information; did I
overlook something in the specs, or if this is a not intended bahaviour?
(Maby some context could be usefull: I'm just trying to implement (in
Delphi) the w3c's saveToString method of the DOMSerializer interface).
Well, how is that really a problem ? The serialization is different,
but have to be different anyway. I don't see why this would be not
compliant or a problem for DOM implementation.
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]