Re: Newbie Question - Parse XML with PHP...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux