To XML or not to XML, that is the question...

BlitzMax Forums/BlitzMax Programming/To XML or not to XML, that is the question...

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

you could even embed the binary data of "entrance.dat" within the xml file using BASE64 encoding.

would look something like this:
...
 <levels>
    <level name="Entrance" music="snd/mL1.ogg">
        <data encoding="base64">
SGV5IHlvdVwncmUgYWJsZSB0byBk
ZWNvZGUgYmFzZTY0ISB1bmJlbGlld
mFibGUhIDspDQpIZXkgeW91XCdyZS
BhYmxlIHRvIGRlY29kZSBiYXNlNjQhI
HVuYmVsaWV2YWJsZSEgOykNCkhle
SB5b3VcJ3JlIGFibGUgdG8gZGVjb2Rl
IGJhc2U2NCEgdW5iZWxpZXZhYmxlI
SA7KQ0KSGV5IHlvdVwncmUgYWJsZ
SB0byBkZWNvZGUgYmFzZTY0ISB1b
mJlbGlldmFibGUhIDspDQpIZXkgeW
91XCdyZSBhYmxlIHRvIGRlY29kZSBi
YXNlNjQhIHVuYmVsaWV2YWJsZSEg
OykNCkhleSB5b3VcJ3JlIGFibGUgdG
8gZGVjb2RlIGJhc2U2NCEgdW5iZWx
pZXZhYmxlISA7KQ0KSGV5IHlvdVwn
cmUgYWJsZSB0byBkZWNvZGUgYmF
zZTY0ISB1bmJlbGlldmFibGUhIDspD
QpIZXkgeW91XCdyZSBhYmxlIHRvIG
RlY29kZSBiYXNlNjQhIHVuYmVsaWV
2YWJsZSEgOyk=
      </data>
    </level>
  </levels>
...