Best way to save an array of integer as XML element?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have to save in a XML file an array of Integer (Int32, language VB 2010). This array should be stored in only ONE element of the XML three.<br/>
If I use serialization I get nn elements, if the array has nn items. I do not want that, I just want put all items in only one XML element.<br/>
In the past, for array of byte, I used WriteBase64 method and it worked fine. But for an array of integer I do not know how to do?<br/>
I could convert the array of integer in an array of byte (with a loop?), but I do not like very much the solution.<br/>
Any other idea?<br/>
<br/>
Thank you.<br/>
<br/>
<br/>
<br/>

View the full article
 
Back
Top