I was trying to insert new data into an existing XML file, but it\'s not working. Here\'s my xml file:
swimming
I think I know what is the problem with your code. You should not write like that: The right code is: