
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.