If the XML input to be unmarshalled has "xmlns:xsi" stuff, it works fine.
Otherwise, I get ClassCast exception while processing Unmarshalled
Java objects.

For eg.
<element1>
   <test-elem
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:type="test-elem">
   <value1>1143795566142</value1>
   .....

The above XML is unmarshalled properly. But, if I remove the xmlns:xsi and
 xsi:type stuff, Unmarshalled objects are not proper. There's class cast
 exception for testElem object.

 i.e
 <element1>
   <test-elem>
   <value1>1143795566142</value1>
     .....
 The above xml is not unmarshalled properly.

 Any hints?
 

-D

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to