lmi
[Top][All Lists]
Advanced

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

Re: [lmi] change file formats to XML


From: Vaclav Slavik
Subject: Re: [lmi] change file formats to XML
Date: Mon, 15 Mar 2010 16:33:41 +0100

On Mon, 2010-03-15 at 14:47 +0000, Greg Chicares wrote:
> > On one hand, it does make sense to use xml::element here, as we know
> > that elements are used. On the other hand, xml_serialize::type_io<>
> > interface must use xml::node, because it sometimes serializes into
>> plain text nodes.
> 
> I keep staring at this, but I just don't see it. 

I'm sorry, I apparently forgot the details before the patch even landed
on the trunk :(

You're right, it doesn't do anything like that -- it sometimes
serializes into plain text node *under* the node that is to_xml's
argument. But the node passed to type_io<> methods is always an element,
for both simple and "composite" types.

So it does make sense to use xml::element in type_io<> (and hence
elsewhere too). In fact, it would probably helped me avoid this
particular confusion.

Sorry again,
Vaclav





reply via email to

[Prev in Thread] Current Thread [Next in Thread]