tree fragments
Brought to you by:
bs_php,
nigelswinson
From: Dan A. <big...@ya...> - 2001-10-15 20:14:19
|
Last week was a bit busy for me and I didn't get a chance to mention the things on my mind, so here goes. Would it be possible to be able to create a result tree fragment and then insert that result tree fragment into the XML tree. In particular, I am refering to something similar to the javascript xmldom. You do something this... create element -> create attribute -> add text then take that, and insert it into the tree....the only reason I would want to do something like this is because I imagine it would be faster than having to access the whole tree at once while continuously adding data to the same node...or am I wrong in thinking that? Secondly, I remember reading in the changelog that all DOM functions can accept a single node xpath...such as $xmltree->appendChild("/root","newnode"); however, when I do the above, without the "[1]" at the end of root, I get an error that the node does not describe a unique node in the tree, even though I only have one root tag. Perhaps this is just a bug? Later, Dan |