http://qs1969.pair.com?node_id=879132


in reply to accessing XML-declarations

Access it through the actualEncoding method() of the document object:

my $doc = $parser->parse_file("test.xml"); print $doc->actualEncoding();

Peter (Guo) Pei