I have an xml file that I get using WWW::Mechanise and it is XML. It starts with:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/foo/test.xsl"?>
I want to parse the xml with XML::LibXML, find the xsl file url, retrieve it and apply it. At least that is what I think if have to do. I don't know how to get XML::LibXML to give me the declarations at the top (ie the <? ?> things).
All I really want is the HTML that results from applying the XSL to the XML. (I know, all you really want is a pony but this is about my question at the moment ;-) )
Thanks for any and all help. I am not fixed on using XML::LibXML so I would be interested in any other useful modules.