Tag Archives: XML

XML vs. JSON vs. YML

Here is a side by side comparison of the same data presented in three common formats.  How do they compare?  What are they good for?

Posted in Coding, Design | Tagged , , , , | Leave a comment

Prefer JSON over XML for Data Structures

If you are going to exchange data structures between programs you have many choices.  Of these, JSON is the best choice in general, and specifically a better choice than XML, and this post explains why.

Posted in Design | Tagged , , | Leave a comment

3 reasons that XML should be Streamed and never "Stringed"

XML is a text format, and so it is tempting to handle it with the normal String handling capabilities of Java, but there are several reasons that you must never do this.  XML should either be on the disk as … Continue reading

Posted in Coding, Design | Tagged , , , , | Leave a comment

XML Schema Validation, or not?

The question is: should a program that reads a standard XML file format use XML Schema Validation when reading the file to make sure that the file being read is properly formatted?  The answer depends upon a lot of things.  … Continue reading

Posted in Design, practice | Tagged , , , , , , | Leave a comment