Java 8 DomHandler - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 DomHandler class.

This code example shows how to use the following methods:createUnmarshaller, getElement
            ErrorHandler handler = unmarshaller.getErrorHandler();
            Result result = null;
            if(handler != null && handler instanceof JAXBErrorHandler) {
                result = domHandler.createUnmarshaller(((JAXBErrorHandler)handler).getValidationEventHandler());
            } else { 
                result = domHandler.createUnmarshaller(null);
            if(result instanceof DOMResult){
            	((DOMResult) result).setNode((org.w3c.dom.Element)dataValue);
                xmlPlatform.newXMLTransformer().transform((org.w3c.dom.Element)dataValue, result);                
            return domHandler.getElement(result);       
        return dataValue; 
    public Object convertObjectValueToDataValue(Object objectValue, Session session, XMLMarshaller marshaller) {
        if (objectValue != null && elementClass.isAssignableFrom(objectValue.getClass())) {
            ErrorHandler handler = marshaller.getErrorHandler();
Experience pair programming with AI  Get Codota for Java
See Code Examples for Java 8 DomHandler Methods: