Java XML JAXB Unmarshaller unmarshal(String xml, Class clazz)

Here you can find the source of unmarshal(String xml, Class clazz)

Description

unmarshal

License

Apache License

Declaration

public static <T> T unmarshal(String xml, Class<T> clazz) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import javax.xml.bind.JAXB;

import java.io.StringReader;

public class Main {
    public static <T> T unmarshal(String xml, Class<T> clazz) {
        return JAXB.unmarshal(new StringReader(xml), clazz);
    }/* w  w w . jav  a  2s.co m*/
}

Related

  1. unmarshal(String ObjXml, Class configurationClass)
  2. unmarshal(String packageName, InputStream inputStream)
  3. unmarshal(String string, Class clazz)
  4. unmarshal(String xml, Class c)
  5. unmarshal(String xml, Class clazz)
  6. unmarshal(T entity)
  7. unmarshalByContent(Class clazz, String xmlContent)
  8. unmarshalDOMElement(byte[] input)
  9. unmarshalFromReader(Reader reader, Class c)