ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Generating an XML Document with JAXB
Subject:   unmarshalling
Date:   2009-04-03 12:01:50
From:   dvohra09
Response to: unmarshalling

What is variable xml?
Unmarshaller unMarshaller = jaxbContext.createUnmarshaller();
JAXBElement<JournalType> journalElement = (JAXBElement<JournalType>)
unMarshaller.unmarshal(new StreamSource(new ByteArrayInputStream(xml.getBytes())),JournalType.class);

JournalType journal= journalElement.getValue();

Does a different unmarshall method unmarshall?

1 to 1 of 1
  1. unmarshalling
    2009-09-17 22:27:37  sumapuji [View]

1 to 1 of 1