(SVGDOMImplementation.SVG_NAMESPACE_URI, "svg", uri, is);
if (uri != null) {
((SVGOMDocument)doc).setParsedURL(new ParsedURL(uri));
}
AbstractDocument d = (AbstractDocument) doc;
d.setDocumentURI(uri);
d.setXmlStandalone(isStandalone);
d.setXmlVersion(xmlVersion);
} catch (MalformedURLException e) {
throw new IOException(e.getMessage());
}
return doc;
}