trees and paths

From: Date: Tue, 16 Dec 2003 09:04:48 +0000
Subject: trees and paths
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4298@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 another hint i'm writing a xml editor in php, using a ctree, a table for xml-node attributes and a gtktext for cdata into nodes. for parse a xml file i'm using xml_parser functions. xml nodes are not labeled (i have no id for a node), and making path from node types have not sense, i thought the better thing was: $obj=&$this->tree->insert_node($parent,Null,array($key),3,Null,Null,Null,Null,False,True); $this->key="KEY_".(++$this->datacounter); $this->tree->set_data(serialize($obj),$this->key); the set_data is a access function (for all widgets) to a hash table. i think it's very useful, but it's very little documented. Dimitri Giardina -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (MingW32) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj/eyUEACgkQjbCncHBsBCK3mQCgnLSpBkFA8XJXm4ofvR4MYlM/ EcEAoNqHg6LXtR/blsx6D/fBJgxdtHeL =cXH+ -----END PGP SIGNATURE-----

« previous php.gtk.general (#4298) next »