Hello, For some reason, $h = new HTML::TreeBuilder; $h->parse($doc); .. print $h->as_HTML; removes the <!DOCTYPE> instance public indentifier from the output. Is there a way to preserve this? Thanks for your help :). -Grace