Could you model an office building in XML?

Experience Level: Medior
Tags: Data FormatsXML

Answer

Well, the answer depends on the imagination of the candidate.

What would be nice to see in the answer?

  • Multiple elements/tags
  • List of elements
  • Attributes
  • Indentation 

Solution example

<building>
  <name>Office Building XYZ</name>
  <address>
    <city>Prague</city>
    <country>Czech Republic</country>
  </address>
  <floors>
    <floor name="Ground floor">
    </floor>
    <floor name="Floor 1">
    </floor>
    <floor name="Floor 2">
    </floor>
  </floors>
</building>

Comments

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