noob question : reading xml from url link by using php
- by mireille raad
Hello,
I am trying to build an authentication plugin that uses php/xml.
My application can communicate to another application by sending this :
http://tst.example.net/remote/validate_user.jhtml?ticket=$ticket_value
in return i get a formatted xml document. i want to be able to parse that document.
I googled and read a bit around here , but what i could find is that using php_simplexml i can do the following
$xml = simplexml_load_file("test.xml");
echo $xml-getName() . "";
foreach($xml-children() as $child)
{
echo $child-getName() . ": " . $child . "";
}
my question is : i don't have a test.xml file, it is a url that i am reading/parsing, any way how to get the info from the url, not a file.
I know this is a very noobish question, i would appreciate the help