Re: Parsing an XML return from a POST - resend with a little more information
| From: | Roman Neuhauser | Date: | Wed, 10 Jan 2007 02:47:01 +0000 |
| Subject: | Re: Parsing an XML return from a POST - resend with a little more information | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246823@lists.php.net to get a copy of this message | ||
# rluckhurst@resmaster.com / 2007-01-10 12:09:40 +1100:
> RN> What makes you think simplexml is not for you? I don't say it is, but
> RN> you need to tell us exactly what you need.
> RN>
>
> From what I can see, unless I am mistaken, SimpleXML can not deal with
> attributes within a tag. It only seems to deal with data contained between a
> start tag and an end tag. I have a lot of data contained within the start tags
> that I must extract.
A cursory glance at the ref.simplexml.php page led me to
http://www.php.net/manual/en/function.simplexml-element-attributes.php,
isn't this what you want?
> RN> http://php.net/manual/en/ref.simplexml.php has quite a
> RN> few examples in
> RN> the user-contributed notes. Have you seen the manual?
> RN>
>
> Yes of course I have seen the manual.
>
> RN> Many of the examples at
> RN> http://php.net/manual/en/ref.simplexml.php use a
> RN> string variable as the source.
>
> Yes I know they do but the examples for xml_parse() do not use a string.
Uh, http://www.php.net/manual/en/function.xml-parse.php
says xml_parse()
takes a string. *shrug*
Anyway, I'm still not convinced simplexml isn't enough for you.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991