For Programmers: Free Programming Magazines  


Home > Archive > Java Help > May 2006 > Unmarshall from Document not the same as string?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Unmarshall from Document not the same as string?
Elhanan

2006-05-24, 7:07 pm

hi..

i'm trying this:

Unmarshaller u = jb.createUnmarshaller();
StringReader srw= new StringReader(TestXml.toXMLString(Inputdoc));
StreamSource ss= new StreamSource(srw);
Case fc =(Case)u.unmarshal(ss);

if i try to unmarshall directly from InputDoc (which is simply dom
Document Object i get Unexecpted Element exception
why is that?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com