Package org.vectomatic.dom.svg.impl

Examples of org.vectomatic.dom.svg.impl.SVGSVGElement


   * 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);
  }
View Full Code Here

TOP

Related Classes of org.vectomatic.dom.svg.impl.SVGSVGElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.