Closed GoogleCodeExporter closed 9 years ago
Added the following method in DslContext,
public String getXMLDocument(){
String script = """var doc = window.document;
var xml = null;
if(doc instanceof XMLDocument){
xml = new XMLSerializer().serializeToString(doc);
}else{
xml = getText(doc.body);
}
xml; """
String xml = getEval(script)
return xml
}
Original comment by John.Jian.Fang@gmail.com
on 3 Mar 2009 at 12:15
Original issue reported on code.google.com by
John.Jian.Fang@gmail.com
on 2 Mar 2009 at 10:45