How can I transform the following XML into a List or String[]:
List
String[]
1 2<
You can use Properties class.
Properties prop = new Properties(); prop.loadFromXML(stream); Set set = prop.keySet();
You can than access Strings from set for each key. Key is element name of xml.