Can you describe the difference between a structured and non-structured data format? Can you provide some examples?

Experience Level: Junior
Tags: Data FormatsXML

Answer

The structured format can be easily parsed and understood by a computer.

Textual non-structured format

This is a building that has 3 floors. The name of the ground floor is Ground floor, the second floor is called Guest floor and the first floor is most of the time empty so we internally call it Backup floor.

XML structured format

<building>
  <floors>
    <floor name="Ground floor" number="0" />
    <floor name="Backup floor" number="1" />
    <floor name="Guest floor" number="2" />
  </floors>
</building>

Related Data Formats job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.