un-Java-ified the dom-to-text-stream code I took from wherever.
renamed svgg to g, as it's not ambigious
instead of using URIs, just read the stream to transcode, since there aren't relative refs.
if the frame/artwork is a RemoteImage, use a xlink:href to reference it, instead of Base64 encoding it as a data URL.
instead of just RemoteImage, ensure it's a file or http URL before using an xlink:href instead of inlining the bytes