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 database.
Looking at the DOM API, it looks like I can create a new a DomDocument, and then append child nodes to it before calling saveXML(). But how do I "cast" the DOM Element to DOM Nodes that appendChild() needs? -- Aj. _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php
