Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: accessing XML-declarations

by PeterPeiGuo (Hermit)
on Dec 25, 2010 at 04:00 UTC ( [id://879132]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://879132]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-05-29 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found