Re: >> Very Simple PHP DOM Question..Please help!
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: >> Very Simple PHP DOM Question..Please help!

From: <gene.ellis@gmail.com>
Date: Thu Jun 30 2005 - 00:40:57 CEST

Actually I just erased it. But it was basically using these functions:

DOMDocument->createElement()
DOMNode->appendChild()

My resulting file ends up resembling this:
<comment><user>john<date>some date</user></date></comment>

So I understand how to do everything except for getting these tags to
close in the right place. any idea what I could be doing wrong? How
could I use those two functions to create a node tree that looks like:
<comment><user>john</user><date>some date</date></comment>

Thanks a lot for your help. I have been racking my brains on this for a
long time
Received on Mon Oct 17 20:59:34 2005