Re: [nyphp-talk] DOM XML questions

2007-11-20 Thread Rob Marscher
On Nov 19, 2007, at 6:05 PM, Ajai Khattri wrote: Anyone here familiar with the DOM XML functions in PHP? ...snip... But how do I "cast" the DOM Element to DOM Nodes that appendChild() needs? Not sure you'd want to consider this... but I've found the SimpleXML library *much* easier to work

[nyphp-talk] DOM XML questions

2007-11-19 Thread Ajai Khattri
Anyone here familiar with the DOM XML functions in PHP? Im running an XPath query on an XML document and I get back a list of DOM Elements which I can iterate through. Great. But want I really want to do it convert all of those tags into strings, concatenate them together and save them in a da