W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > January 2007

Re: Serialize Component

From: Alex Milowski <alex@milowski.org>
Date: Wed, 31 Jan 2007 14:01:26 -0800
Message-ID: <28d56ece0701311401x2ce0b4bdhdfd450a9b1b1f5f@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org
On 1/31/07, Innovimax SARL <innovimax@gmail.com> wrote:
> So I understand that you keep the root and all its attributes, but
> serialize all
> so
> "<!--comment--><root><a/></root>"
> would give
> "&lt;--comment--&gt;<root>&lt;a/&gt;</root>"
> which is ill formed

Yeah.  I forgot a part on the parse component.  The parse component needs
to have the ability to define a wrapper element so that you can do the
inverse of this operation.

In smallx I allow an optional wrapper element and default namespace so you
can handle
escaped XHTML chunks.  Effectively you wrap the string of characters with
"<root xmlns='...'>" and "</root>" and then remove the 'root' element.

This is all really to handle unescaping things like the RSS description

--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language

Bertrand Russell in a footnote of Principles of Mathematics
Received on Wednesday, 31 January 2007 22:01:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:41 UTC