question: public static void addElement ( Document doc , Element rootElement , String elementName , String typeIn , String isArrayIn , String partitionerIn ) { Element element = doc . createElement ( "element" ) ; rootElement . appendChild ( element ) ; Element name = doc . createElement ( "name" ) ; name . appendChild ( doc . createTextNode ( elementName ) ) ; element . appendChild ( name ) ; Element type = doc . createElement ( "type" ) ; type . appendChild ( doc . createTextNode ( typeIn ) ) ; element . appendChild ( type ) ; if ( isArrayIn . equals ( "true" ) ) { element . appendChild ( doc . createElement ( "isArray" ) ) ; } if ( partitionerIn != null ) { Element partitioner = doc . createElement ( "partitioner" ) ; partitioner . appendChild ( doc . createTextNode ( partitionerIn ) ) ; element . appendChild ( partitioner ) ; } }
target:  Helper method to add elements to the test data schema