question: private void createElement ( Document doc , Element parentElement , String elementName , boolean value ) { Element element = doc . createElement ( elementName ) ; element . appendChild ( doc . createTextNode ( Boolean . toString ( value ) ) ) ; parentElement . appendChild ( element ) ; }
target:  Creates the XML element for a boolean value.