Title: FW: Help?


 

Dear Dev,
I am trying to use CASTOR API for databinding .

I am getting string from database which is in real having XML tags.
 For Example
String S= "<mapping> ... <class name='mypackage.myclass'> <map-to xml='data'/> <field name='foo' direct='true' .... > <bind-xml name='foo-like node='attribute'/> </field> </field name='bar' .... > <bind-xml name='something' node='element'/> </field> </class> ... </mapping> "

Now I have to use new  Mapping.loadMapping(org.xml.sax.InputSource source)  method .    My restriction is , I should not use any file only XML String as a parameter as defined above.

My problem is!  I am not able to figure it out, which constructor/method  of org.xml.sax.InputSource  I should use, that  will take this String S as an Parameter and will return InputSource object or any other way to achive  same objective ,my restriction is,I have to use CASTOR API.

Please help me in this ,if possible please write org.xml.sax.InputSource constructor with parameter description.

Thanks
Divyanand
**************************************************************************
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

**************************************************************************

Reply via email to