Re: XML and Objects

David Brownell (db@Eng.Sun.COM)
Tue, 29 Sep 1998 10:22:43 -0700


Alex Thomas asked:
> I'd also like to know if there's a reason a bean couldn't use specific
> property names,
>
> > <PROPERTY NAME="prop2" DCD:string>hello world</PROPERTY>
>
> becoming
>
> <PROP2>hello world</PROP2>

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