return ((Element)nd).getLocalName();
} else if (source instanceof StaxSource) {
StaxSource s = (StaxSource)source;
r = s.getXMLStreamReader();
} else if (source instanceof StAXSource) {
StAXSource s = (StAXSource)source;
r = s.getXMLStreamReader();
} else if (source instanceof StreamSource || source instanceof SAXSource) {
//flip to stax so we can get the name
r = StaxUtils.createXMLStreamReader(source);
StaxSource src2 = new StaxSource(r);
sources.set(i, src2);