On 08/16/2012 08:09 AM, Irfan Sayed wrote:
thanks. it worked
however, i cant give xml file path instead of all the contents in the start 
tag<<

regards,
irfan


(BTW: The custom on this list is NOT to top post -- trim, and put your replies at the BOTTOM of the email you are responding to)

Carefully read the perldoc for XML::LibXML ... XML is a huge and complicated thing and there is complete (if a bit overwhelming) documentation for Documents and Nodes and Elements and Attributes - and then multiply it all by "oh Glory Be" when it starts talking about namespaces (which for trivial XML like you've demonstrated can often be ignored)


What you want is in the begging of perldoc XML::LibXML::Parser, where it says ...

         $dom = XML::LibXML->load_xml(
             location => $file_or_url
             # parser options ...
           );

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to