2 ms·
This is by no means totally bulletproof, but these C macros around libxml2 let us write nested well-formed XML expressions as code: Example usage: https://gith
by rwmj 10y ago
This is by no means totally bulletproof, but these C macros around libxml2 let us write nested well-formed XML expressions as code:
Example usage: https://github.com/libguestfs/libguestfs/blob/master/src/launch-libvirt.c#L1186-L1208 https://github.com/libguestfs/libguestfs/blob/master/src/lau...
Macro definitions: https://github.com/libguestfs/libguestfs/blob/master/src/launch-libvirt.c#L880 https://github.com/libguestfs/libguestfs/blob/master/src/lau...
- oceanswave 10y agoTotally, we took this a step further and created a subversion repository where xml documents describe classes. Each method is either inline, or is described by a xml element of a particular namespace that links to a subversion id and revision. ;)
- witty_username 10y agoNote: I believe this is a reference to http://thedailywtf.com/articles/the-inner-json-effect http://thedailywtf.com/articles/the-inner-json-effect
- oceanswave 10y agoWhat? No! Someone stole our XDSL concept and called it JDSL. Bastards! All these hipsters taking XML ideas and rewriting them in JSON because JSON is "cool" now. sigh (yes ;))