Why all use binary files, if all can use XML ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because of performance, of course, then XML is good when you have to define a tree structure but not all kind of data fits well with it. Would you store a 3d model inside a XML file? Or an image?
XML is good to handle text data, what about effective binary data like images, sounds, compressed files, whatever..
It’s really verbose and heavy to be parsed and you don’t want to use it when performance matters (think about the netcode of a game for example).
I would shoot myself if I have to read an XML file containing for example structures for vectors or points.
Using a parser instead that dumping content into memory with something like:
would make me feel stupid..