On Monday 31 October 2005 11:27, Marian Kostadinov wrote: > > SimpleXML is meant to be simple and the desicion was made to keep its > > API short. Use DOM if you want those more advanced features (there's > > dom_import_simplexml() and simplexml_import_dom() for easy and fast > > switching between those 2) > > > > chregu > > SimpleXML is simple and that is great. But such a CORE functionality > like getting a SimpleXML node own name and type is not available. > It's funny that one can access absolutely everything about a node > children, attributes and so on very easily and intuitively, but cannot > access node's own name:)
I don't think it's a core feature since the tree hierarchy of the XML is well defined and you have a well-formed DTD. As Christian spotted - the DOM functionallities could serve you well. The basic and simple API attracts so much users, let's keep it this way. -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436
pgp8PTSsLAjfB.pgp
Description: PGP signature