Im trying to delete a node in XML file using Javascript. The used browser is Firefox. Im reaching the node which I want to delete successfuly, then Im trying
delNode.ParentNode.RemoveChild(delNode)
but when i went back to the xml file on my harddisk, the node was still there. I need to delete the whole node (not only children). If someone could guide me to what to do, I’ll be so greatful 😉
Thanks
Im trying to delete a node in XML file using Javascript. The used browser
Share
Thanks for the help. I couldn’t find a way to change the content of the file in javascript so I used PHP. I was trying simply to delete the first node in my xml activity1.xml. Here is the code:
It simply delete the first node whatever children it has 😉