Hello Stanislav, Tuesday, December 2, 2003, 10:01:40 AM, you wrote:
AK>>> but this is a whole world clearer... AK>>> AK>>> foreach($s->person->children as $person) { AK>>> $firstname_text_value = $person->firstname->value; AK>>> } > I agree 100%. It looks cool if yo do $a = $b and behind the scenes it > launches whole train of magic and runs a lot of code, but it's not that > cool if you think beyond the look. If you want full control and no magic then you can still use DOM. SimpleXML aims to help with simple xml structures and tries to provide the easiest way of working with it. Atm there are three rules with SXE objects: 1) a property maps to an element 2) any property aka element converted to or used as a string represents the textual content of it 3) a sxe object used as an array allows to work with its attributes i think this is easy to understand and pretty nice i know too that this doesn't deal with all probelms - i can live with that because thanks to rob i can convert any sxe object to a dom object and vice versa - great! - i like this :-) -- Best regards, Marcus mailto:[EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php