How it works
Basically, I started with ezxmltext and once I had seen the >4000 lines it's comprised of (mostly parsing and validation of XML, most not using DOM), I decided that there gotta be a simpler way and started overriding the input and output handlers (from all I know, OE and XMLarea do that, too).
First mission was to get links working which is relatively easy (everything that contains eznode:// or ezcontent:// as href needs a new href, done [for editor support, the editor data will remain unchanged)).
embed is much harder. After some pondering and messing around with it, I have decided to simply replace
For both things, instead of parsing the whole XML tree in a sax like manner, I decided to simply use getElementByTagName and do my dirty work with it. That works quite well, really.
As for tags, if those contain a src eznode or ezcontent id attribute, it will be replaced with an embed (but with type="image" set so we can convert it back for the editors), too. On the output, the embed tempalte for images will be used as well.