Some Perl code that I’m looking at is returning xml data from a method call. How do I view this xml data?
Code:
print "$xml";
What I get:
XML::XPath=HASH(0xa408dbc)
What I want:
Actual xml contents, i.e:
<sometag>
<sometag2/>
</sometag>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe that you want one of
That is, find the root (‘
/‘) node of your XPath object, and print it out as a string.