Sure removeContent(Content child) removes child if child belongs to the parents immediate children, which it does not in your case. Use el.detach() instead.
Sure, removeContent(Content child) removes child if child belongs to the parents immediate children, which it does not in your case. Use el.detach()instead.
Dogbane Both these solutions seem to work and now I understand why it wasn't working earlier. Thanks a lot. I have to choose one solution so I might just go with this one, unless you guys think otherwise for some reason.
– Swift-Tuttle Apr 12 at 13:14.
If you want to remove the City element, get its parent and call removeContent: XPath xpath = XPath. NewInstance("/*/Country/Region/State/City"); Element el = (Element) xpath. SelectSingleNode(doc); el.getParent().
RemoveContent(el); The reason why doc. RemoveContent(el) does not work is because el is not a child of doc. Check the javadocs for details.
There are a number of overloaded removeContent methods there.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.