Package org.opcfoundation.ua.encoding.xml

Examples of org.opcfoundation.ua.encoding.xml.XmlDecoder


            StringWriter sw = new StringWriter();
            marshaller.marshal(jaxbElement, sw);

            XmlElement xmlElement = new XmlElement(sw.toString());
            XmlDecoder xmlDecoder = new XmlDecoder(xmlElement, ENCODER_CONTEXT);
            Object o = xmlDecoder.getVariantContents();

            return new DataValue(new Variant(o));
        } catch (Throwable t) {
            throw new RuntimeException("unable to parse Value: " + value, t);
        }
View Full Code Here

TOP

Related Classes of org.opcfoundation.ua.encoding.xml.XmlDecoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.