How does XML differ from JSON in terms of data structure representation?

  • Graph-based structure
  • Hierarchical structure
  • Sequential structure
  • Tree structure
XML represents data in a hierarchical structure, allowing nested elements and complex relationships. In contrast, JSON uses a tree structure, making it more straightforward with a sequential and easily readable format. Understanding these differences is crucial when choosing the appropriate format for data representation.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *