}
if (eventProxy.isParent()) {
// put eventNames in arraylist for iteration
// put events in list mapped by eventName
JaxbEventBase evt = unmarshall(unmarshaller, DOMStreamConverter
.toInputStream(element));
evt.setValidatingSchema(s);
eventList.add(evt);
/*
* eventList.add((Event)unmarshaller
* .unmarshal(DOMStreamConverter
* .toInputStream(this.elements[i])));
*/
event.setResolve(ResolveType.PARENT);
event.setEvents(eventList);
events.add(event);
} else if (eventProxy.isChildren()) {
NodeList nodeList = element.getChildNodes();
for (int j = 0; j < nodeList.getLength(); j++) {
if (nodeList.item(j).getNodeType() == Node.ELEMENT_NODE) {
JaxbEventBase evt = unmarshall(unmarshaller,
DOMStreamConverter
.toInputStream(nodeList
.item(j)));
evt.setValidatingSchema(s);
eventList.add(evt);
/*
* eventList.add((Event)unmarshaller
* .unmarshal(DOMStreamConverter
* .toInputStream(nodeList .item(j))));