FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » xml parsing issue
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: xml parsing issue [message #184704 is a reply to message #184698] Sat, 18 January 2014 12:18 Go to previous messageGo to previous message
Ben Bacarisse is currently offline  Ben Bacarisse
Messages: 82
Registered: November 2013
Karma:
Member
Rob B <rob(dot)bradford(at)virgin(dot)net> writes:

> I feel pretty stupid posting this but I just can't sort it.

The manual is not very clear on this. I think the problem you are
having is that everything you access is returned as a SimpleXMLElement
object and you want a PHP string.

> I have a
> very short and simple piece of XML and I can't parse it, I have parsed
> xml in the past without issue but this I just can't sort for some
> reason.
>
> The XML:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <RegionalFcst xmlns="www.metoffice.gov.uk/xml/metoRegionalFcst"
> issuedAt="2014-01-18T04:00:00"></RegionalFcst>

print_r((string)$xml['issuedAt']);

<snip>
--
Ben.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to locally install Wordpress, Ubuntu 8.10 , XAMPP already installed.
Next Topic: strange parameters...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 15:29:23 GMT 2024

Total time taken to generate the page: 0.04334 seconds