|
Boost : |
From: gchen (chengang31_at_[hidden])
Date: 2007-07-12 05:40:36
David Abrahams wrote:
>
> I find XML horrible to read,
Yes. And that is the good reason we need a library to read it.
> however I find most of the procedural code I've seen for manipulating
> it even more horrible.
Agree.
>
> I would like to see a more declarative syntax for much of this stuff.
>
[...]
> could be something like:
>
> root.push_front(
> tag("articleinfo")[
> title ? (comment("This title was moved"), title) : NULL
> , tag("author")[
> tag("firstname")["Joe"],
> tag("surname")["Random"]
> ]
> ]
> )
>
This looks very interesting. I am just wondering if this declarative
syntax could also apply to xml reader.
From my experience, creating xml does't seem a big problem, but writing
xml-reader (created by other softwares, like rss feed, xhtml, log in xml
format) is a time-consuming task.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk