return new SimpleXMLElementClass(document.getDocumentElement());
return new SimpleXMLElementClass(document, document.getDocumentElement());
  public Value simplexml_load_string(@NotNull String data,                                     @Optional String className,                                     @Optional int options)  {    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();    try {      DocumentBuilder builder = factory.newDocumentBuilder();      Document document = builder.parse(new ByteArrayInputStream(data.getBytes()));      return new SimpleXMLElementClass(document.getDocumentElement());    } catch (Exception e) {      log.log(Level.FINE, L.l(e.toString()), e);      return NullValue.NULL;    }  }