It sounds like you could use XML to solve that! Why not adding the ability for both!? You would just need to add the feature to convert any of these into clean css'ed html!
Maybe I'm not that familiar with xml, but i read a bit into it and it should be possible!?