On 16-04-15 09:29, Thomas Beale wrote: > e still need some kind of schema for XML docs/ messages, but I would > not even think of making any persistence be based on XML, especially > not XML schema. Probably Relax NG would have been the better one for > messages etc. > > Keep XML at the boundaries, that's the key to happiness! I guess JSON > with its own schema will replace it in the next couple of years. With RelaxNG, IMHO, you cannot communicate structure, RelaxNG only serves validation. So, if I am right, optimizing an XML database using RelaxNG is impossible. You, can say, that if it validates in a RelaxNG-schema, then it must be structured right, but learning a structure from a RelaxNG schema seems hard to me.
I don't think JSON wll replace XML, JSON has no attribute-mechanism, and must treat everything as data. It has its use for wellknown structures. It is efficient. But if you want JSON to be as rich as XML, then it must be restructured as XML, and then it will become XML2. Which is OK for me, but then we still have to solve the problems with XML Schema, but then on JSON-Schema Bert

