InterningXmlVisitor handler = new InterningXmlVisitor(createUnmarshallerHandler(null,false,expectedType));
scanner.setContentHandler(new SAXConnector(handler,scanner));
if(node.getNodeType() == Node.ELEMENT_NODE)
scanner.scan((Element)node);
else
if(node.getNodeType() == Node.DOCUMENT_NODE)
scanner.scan((Document)node);
else
// no other type of input is supported