W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

LS: DOMWriter Serialization Rules an XML C14N

From: Glenn Adams <glenn@xfsi.com>
Date: Sat, 9 Feb 2002 14:04:35 -0500
To: "Www-Dom@W3.Org" <www-dom@w3.org>
Message-ID: <000501c1b19c$9dff3fd0$0201a8c0@xfsi.com>
The description of serializing character data and attributes is at variance with XML C14N rules; it seems preferable to stay consistent with C14N where possible, or at least to better motivate any departures.
For example, the description:
"Attributes containing quotes but no apostrophes are serialized in apostrophes (single quotes). Attributes containing both forms of quotes are serialized in quotes, with quotes within the value represented by the predefined entity &quot;."
varies from C14N which never uses single quotes but always replaces a quotation mark in the attribute value with &quot;.
Somebody should carefully review this text with respect to C14N rules, and either use C14N rules or provide feature options on DOMWriter that allows the user of DOMWriter to choose the appropriate serialization.
Glenn Adams
Received on Saturday, 9 February 2002 14:04:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC