code: @SuppressWarnings({"WeakerAccess", "unused"})
     public static SVG  getFromString(String svg) throws SVGParseException
     {
        SVGParser  parser = new SVGParser();
        return parser.parse(new ByteArrayInputStream(svg.getBytes()), enableInternalEntities);
     }
docs: Read and parse an SVG from the given {@code String}.
  
  @param svg the String instance containing the SVG document.
  @return an SVG instance on which you can call one of the render methods.
  @throws SVGParseException if there is an error parsing the document.