seo - How can I keep my doctype with htmlunit + the page.asXml method -
when run page.asxml() htmlunit lose page's doctype. there work around?
note: intent serve dom google.
try calling
p.getwebresponse().getcontentasstring()
instead of
p.asxml()
i tried against http://google.com, , in former case "<!doctype html>" remained in output.
Comments
Post a Comment