noob question : reading xml from url link by using php

Posted by mireille raad on Stack Overflow See other posts from Stack Overflow or by mireille raad
Published on 2010-04-05T12:59:51Z Indexed on 2010/04/05 13:03 UTC
Read the original article Hit count: 360

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml