Get the latest tech news
XML: Twig – A Time-Tested Powerhouse for Processing XML
as the preferred communication language used by services in the early 2000s. During that time, governments were establishing their own e-government systems, while companies were developing their SOAP services.
usestrict;usewarnings;usediagnostics;useXML::Twig;useLWP::UserAgent;my$ua=LWP::UserAgent->new();my$req=HTTP::Request->new(POST=>"http://universe.com?query=gobeklitepe");$req->content_type('text/XML; charset=utf-8');$req->header(SOAPAction=>'http://universe.com/observations'); my$res=$ua->request($req); my$observation=$twig->root->first_child('soap:Body')->first_child('observeResult')->first_child('observation');
Or read this on Hacker News