At work we have a testing tool that is used to send queries to a data source. The tool takes in input as XML files. The XML files were simple and easy to parse as long as the data structures we tried to represent were one layer deep. But now these data structures are more complex and representing them in XML is getting to be highly confusing. Any thoughts on what I can use to represent the data structures instead of XML ?
Example: Before,
class Foo { int userId; string name; string address; string eMail; }
Now,
class Foo { int userId, string name, vector loc, map attributes; }
class Location { Address addr; //class Address vector lcTime; //class LocatedTime Position ps; //class Position }
... and so on to have any number of nested structures.
I was tilting towards JSON but am open to any representation formats.