throw new GraphicException("Expected root element <math> for "
+ "MathML document, but was: " + rootElementName);
}
final MathBase mathBase = new MathBase(MathBase.getDefaultParameters());
new DOMBuilder(dom, mathBase);
final SVGGraphics2D svgGenerator = this.createSVGGenerator(mathBase);
mathBase.paint(svgGenerator);
/* The following line is what /should/ work. However, there appears to
* be some disconnect in Batik between the Document and the root