The version I sketched has a fixed DTD and you could validate
against it, while still sending arbitrary data.
If you have different element names for each property, you're
either saying that each bean has a different DTD, or that you
are not validating.
Tradeoffs! That's three different ways to "serialize" in two
sentences ...
- Dave