Re: Parsing an XML return from a POST - resend with a little more information

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

 



# rluckhurst@xxxxxxxxxxxxx / 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 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 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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