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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -