I found this link on serialization protocols, but only XML handles referencing of fields via Xpath. I am not a big fan of XML since is slow to serialize, large and not nice to read in text format.
What alternatives do I have?
I need to at least search for fields or arrays and ideally add objects on the fly with validation against a known schema.
Aside from XML the common things you can use:
By the way if you find XML not nice to read you may have a problem with the other “human readable” serialization options out there.
Edit: Incorporating @marc’s comments.