Foren

XML

sathya prakash A, geändert vor 9 Jahren.

XML

Junior Member Beiträge: 67 Beitrittsdatum: 12.06.12 Neueste Beiträge
Hi Friends,

Sting []example={ 10,30,50,60,70}

I want to store the above records as a single column in database [XML Format] ..how to do it in liferay....Please help
thumbnail
David H Nebinger, geändert vor 9 Jahren.

RE: XML

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
Just like you'd do it outside of liferay. Have a string column (fairly large), then use an OXM technology (i.e. jaxb or xstream (my fav)) to transform your string array into an xml string, store the string in the database.
sathya prakash A, geändert vor 9 Jahren.

RE: XML

Junior Member Beiträge: 67 Beitrittsdatum: 12.06.12 Neueste Beiträge
Dear David,

Thanks for your reply!

It would be helpful if you paste any sample code here ...