Last post May 04, 2016 07:20 AM by Das.Sandeep
May 04, 2016 07:16 AM|looc|LINK
I need a way to serialize dynamic record to xml in vb.net.
If i do a normal:
Dim rs = db.Query("select * from table")
I then want to convet the result into xml.
It would be nice to have a function that can take all sorts of objects as input, like JsonConvert.SerializeObject(rs) in Newtonsoft.Json or json.encode
Found a possible solution here:
But i have not been able to convert it to vb.net
I have tried XmlSerializer(dataToSerialize.[GetType]() whith no luck.
Anyone have any solution?
May 04, 2016 07:20 AM|Das.Sandeep|LINK
Dim rs = db.Query("select Col1,Col2,Col3 from table FOR XML RAW;")