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

[email protected] (Bastien Koert)
Newsgroups php.general
Message-ID <CAHxaJ1X=NVBHNCRLgZYinDmRF5pAgZuDnJ3OYk-30bryDHqHQQ@mail.gmail.com>
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 <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.