* the document resulting from the parse
* @throws ParserException
* if the document is not well-formed or is not SVG
*/
public static final OMSVGSVGElement parse(String rawSvg) throws ParserException {
SVGSVGElement elt = impl.parse(rawSvg);
if (!SVGConstants.SVG_NAMESPACE_URI.equals(DOMHelper.getNamespaceURI(elt))) {
throw new ParserException(ParserException.Type.NotSvg, "Invalid root element: {" + DOMHelper.getNamespaceURI(elt) + "}" + elt.getTagName());
}
return new OMSVGSVGElement(elt);
}