Is there a way to have the value of an unspecified attribute in an XML file
take on a default attribute, based on the value of some other application
state? For example, if you have the following element, is it possible to set
nickname to the value of firstname when nickname is unspecified (in the
first line, nickname should be "A")?
<person firstname="A" lastname="B" />
<person firstname="C" lastname="D" nickname="E" />
XMLElement's defaultValue attribute wouldn't work, because that takes a
static value.
Thanks.
--
View this message in context: http://www.nabble.com/Dynamic-default-values-tf4783859.html#a13685855
Sent from the java.net - jaxb users mailing list archive at Nabble.com.