protected SpinXmlTreeElement getCurrent() {
if (childs != null) {
Node item = childs.item(index);
if (item != null && item instanceof Element) {
SpinXmlTreeElement current = dataFormat.createElementWrapper((Element) item);
if (!validating || (current.hasNamespace(namespace) && name.equals(current.name()))) {
return current;
}
}
}
return null;