[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: XML Support for Penlight?
- From: Petite Abeille <petite.abeille@...>
- Date: Tue, 29 Mar 2011 19:11:26 +0200
On Mar 29, 2011, at 3:59 PM, steve donovan wrote:
> But, it cannot represent arbitrary XML, such as <div>here is
> <b>text</b>for you</div>,
Try <div><span>here is</span><b>text</b><span>for you</span></div> instead :P
But in general, yes, it's more tailored for structured data (ala JSON) than arbitrary text markup (ala HTML).
> and in general element order cannot be
> preserved on output.
Well, that's just an implementation detail, no? After all, one could very well use a sorted map  to preserve the order of the elements if one is so inclined.