ADDED: code to do a fully legal export of validating SVG files direct from the in-memory representation (tested: works. You can modify the SVG, write it back to disk, reload it)
FIXED: several minor issues in the DOM implementation that blocked adding this feature
IMPROVED: [SVGKImage imageNamed:] will now search the app/user's Documents directory as well as the bundle, making it extremely useful for apps that allow user-edited SVG files