264265266267268269270271
public final Document parse(String contents) { try { return (Document) NodeXml.build(parseImpl(contents)); } catch (JavaScriptException e) { throw new DOMParseException(contents, e); } }
272273274275276277278279
public final Document wrapJsDocument(JavaScriptObject jso) { try { return (Document) NodeXml.build(jso); } catch (JavaScriptException e) { throw new DOMParseException(DOMNodeExceptionXml.summarize(jso.toString()), e); } }