113114115116117118119
/* // DOMSource is not supported by the XMLInputFactory from JDK 6 DOMSource source = new DOMSource(node); return createXMLStreamReader(source); */ return new DOMXMLStreamReader(node); }
3839404142434445464748
public XMLStreamReader transform(Node source, TransformationContext context) { if (source == null) { return null; } try { DOMXMLStreamReader reader = new DOMXMLStreamReader(source); return reader; } catch (Exception e) { throw new TransformationException(e); } }