Customer クラスとそれに関連する xml ファイルがあります。
File file = new File("D:\\TestingData\\customer.xml");
JAXBContext jaxbContext = JAXBContext.newInstance(Customer.class);
Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
Customer data = (Customer) jaxbUnmarshaller.unmarshal(file);
customer.xml ファイルを外部の場所に配置する必要があります。(D:\TestingData\customer.xml)
私の質問は、xml ファイルを String の一部として unmarshall Method に提供できるかということです??