|Original post by MaulingMonkey|
|Original post by the_edd|
|Original post by loufoque|
|You can define the tags yourself, but it can't check particular "nesting patterns".|
With such a syntax, it could perfectly do so at compile-time.
Well what I mean is it'll check stuff like:
<html>_ <body>_<!html>_ <!body>_; // compiler error
But there's no way to tell it things like "a <body> block must appear inside an <html> block".
It should be possible to add such functionality with a healthy dose of BOOST_PP.
Perhaps you're right. But I fear the repercussions of making it just a little bit too useful for its own good!
For example, I thought it would be quite cool if you could use boost::bind style placeholders such as _1, _2, ... in order to create an XML template that you could "call" with different arguments in order to generate XML documents with small changes in content. But enough is enough. I wasn't *that* bored :)