Re: Newbie Question - Parse XML with PHP...
| From: | Bastien Koert | Date: | Mon, 22 Apr 2013 01:00:13 +0000 |
| Subject: | Re: Newbie Question - Parse XML with PHP... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320956@lists.php.net to get a copy of this message | ||
I have an app that gets passed in xml and use this code to read that data in
// We use php://input to get the raw $_POST results.
$xml_post = file_get_contents('php://input');
Maybe it will help
Bastien
On Sat, Apr 20, 2013 at 7:48 AM, shiplu <shiplu.net@gmail.com> wrote:
> >
> >
> >
> > Question: how do you use $mylist when the xml is not as a file but is
> > returned on a web page?
> >
>
> I assume It returns as a string from page. Then use
> simplexml_load_string(). See
> http://php.net/manual/en/function.simplexml-load-string.php
>
>
> --
> Shiplu.Mokadd.im
> ImgSign.com | A dynamic signature machine
> Innovation distinguishes between follower and leader
>
--
Bastien
Cat, the other other white meat