I have tried both the statements given below but I am still getting the same error. My requirement is to compare 2 xml files. Remove the duplicates from the original file and create a new xml file with the changes.
oDestchildNode.getParentNode().removeChild(oDestchildNode); //Not Working
oDoc3.getDocumentElement().removeChild(oDestchildNode);
Later I have tried with Element. I do not get any error when tried with Element but the node doesnt get deleted in this case.
I have been searching for a solution since few days but no luck.
I have an XML file and I need to delete a specific node. The node to be deleted will be defined dynamically based on the logic. I have been searching in internet for a solution but couldn't delete my node still. am getting error - (NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist)Below is a sample XML File. I need to delete the node -<NameValuePairs> which has <name>Local Variables</name>. Below is my sample XML & Java Code
we are working on centralized server using VSS (Visual Source Safe). we are connecting to the server through our individual systems. our project is in the server. and we have a copy of that project in our invidual systems. so when am uploading a picture, it is storing in my local project and the path is getting stored at the backend. but i want to store the picture in our original project which is on the server. and build is basically where a copy of all your jsps and actions are stored. can you help me....
I am uploading an image, saving it in Build of my project (c:\myproject\build\images) folder and saving the path in the backend (MySQL) using struts action. But I want to save the uploaded image in the build of the Server. Can anyone help me??