Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Storing arrays in XML

Name: Anonymous 2006-12-28 15:37

Hay guys!

I have an array of items I wish to store in XML (since showing XML on teh intarweb is easy). Does anonymous have a good suggestion as to how?

My current implementation is simply separating each item with a semicolon, i.e. "item1;item2;item3;item4", but this is (a) annoying to split into items, and (b) annoying to put back into XML. Suggestions pl0x!

Name: Anonymous 2006-12-29 9:41

i.e. "item1;item2;item3;item4", but this is (a) annoying to split into items, and (b) annoying to put back into XML.

"item1;item2;...;itemN" ... put back into XML

Did it even occur _once_ to you that putting multivalue data in text form into tags makes the use of XML completely redundant? I'm sorry, you just fail it.

or even <item value="penis" />

Use attributes to describe the data of the tag, not hold it.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List