XmlElements: Adding Comments & Whitespace


#1

Hi Jules,

Noticed that there’s no (apparent?) way of adding white space (to manually format), and adding comment “elements”, to XmlElements… And would therefore like to request being able to do both!


#2

If it was a 10-minute job to add that, I’d do it, but I strongly suspect that it’d be one of those can-of-worms tasks that could end up taking days to get right.


#3

Hm… fair enough. Figured you may have had code lying around or something!


#4

Nah, the tricky bit would be that all the existing structures would need to be changed to allow whitespace to be inserted. E.g. the attribute list is currently very simple and fast, but if it had to also hold arbitrary whitespace objects interleaved with the content… yeesh… that’d be nasty to write.