if (x != null) {
for (int i = 0; i < x.getLength(); i++) {
Element ll = (Element)x.item(i);
String loglevel = ll.getAttribute("loglevel");
String events = ll.getAttribute("events");
LogLevel p = new LogLevel(loglevel);
String[] eventlist = Strings.parseXVSLine(events, '\\', '|');
for (String event : eventlist) {
LogEvent evnt = LogEvent.valueOf(event);
this.setLogLevel(evnt, p);
}