I want to save web pages by copying the current DOM value. How can I get the <!DOCTYPE> and it's full attributes? thx!