Use the unmarshall(org.xml.sax.InputSource source) method of an Unmarshaller.  Create an InputStream from your String, see java.io.ByteArrayInputStream or any other way of creating an InputStream from a String.  Use this InputStream to create your InputSource. 
  --m
 
-----Original Message-----
From: Rangan N Chakravarthy [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 3:19 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Unmarshall a xml stream

How can I unmarshal a XML stream. I have a scenario where I read a TEXT data from the DB which is in XML and I need to unmarshall it to a CLASS.
 
 
Thanks
Rangan

Reply via email to