Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.8
-
None
-
None
Description
Using an XML source file, I used to call HierarchicalConfiguration.clear() on an object to remove it from its parent. Now, it just clear the text and the subnodes, but not the node itself, nor its own attribute, when the file is saved.
Here is the code that works :
ConfigurationNode oldNode = configuration.getRootNode(); oldNode.getParentNode().removeChild(oldNode);
configuration belong to a list of HierarchicalConfiguration that I obtained from configurationsAt. I didn't see any other way to remove a node I got from that method, without explicit casting to SubnodeConfiguration.