public void writeElementList ( String tagName , Collection < String > listValues ) { for ( String listValue : listValues ) { openTag ( tagName ) ; writeText ( listValue ) ; closeTag ( tagName ) ; } }
Add a list of Strings to document as elements with given tag name to the tree .