String type = xp.getElementType(elem);
System.out.println("NAME: " + name + " Type " + type);
if (name=="nickname")
{
ArrayList<?> spl = xp.getElements(elem, true);
utils.arrayPrint(spl);
ArrayList<String> attrs = xp.getAttributes(elem);
utils.arrayPrint("Attr: ", attrs);
for (String attr : attrs)
System.out.println("Attribute '" + attr + "' Value: " + xp.getAttribute(elem, attr));