public void deleteProperty ( String name ) { String [ ] propName = parsePropertyName ( name ) ; // Search for this property by traversing down the XML heirarchy. Element element = doc . getRootElement ( ) ; for ( int i = 0 ; i < propName . length - 1 ; i ++ ) { element = element . getChild ( propName [ i ] ) ; // Can't find the property so return. if ( element == null ) { return ; } } // Found the correct element to remove, so remove it... element . removeChild ( propName [ propName . length - 1 ] ) ; }
Deletes the specified property .