Iterator<String> listValueIterator) throws IOException { while (listValueIterator.hasNext()) { xmlOutput.openTag(tagName); xmlOutput.writeText(listValueIterator.next()); xmlOutput.closeTag(tagName); }
Collection<String> listValues) throws IOException { writeElementList(xmlOutput, tagName, listValues.iterator());
	public static void writeElementList(XMLOutput xmlOutput, String tagName,			Iterator<String> listValueIterator) throws IOException {		while (listValueIterator.hasNext()) {			xmlOutput.openTag(tagName);			xmlOutput.writeText(listValueIterator.next());			xmlOutput.closeTag(tagName);		}	}