Re: [Config] XML Parsing Serious Issues
| From: | Bertrand Mansion | Date: | Fri, 19 Dec 2003 21:30:59 +0000 |
| Subject: | Re: [Config] XML Parsing Serious Issues | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9749@lists.php.net to get a copy of this message | ||
<adam@trachtenberg.com> wrote :
> On Dec 19, 2003, at 3:02 PM, Bertrand Mansion wrote:
>
>> AFAIK, there's no way to differentiate attributes from tags once
>> they've
>> been parsed.
>
> That's been changed. Attributes are array elements and elements are
> object properties. For example:
>
> $s = simplexml_load_string('<root
> attribute="a"><element/></root>');
>
> $s['attribute'];
> $s->element;
Cool !
Bertrand Mansion
Mamasam