XML and Objects

David Brownell db at Eng.Sun.COM
Tue Sep 29 19:27:50 BST 1998

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

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list