users@jaxb.java.net

Re: retrieving tag names and values

From: Ryan Shoemaker - JavaSoft East <Ryan.Shoemaker_at_Sun.COM>
Date: Thu, 11 Sep 2003 15:03:46 -0400

salvatgs_at_wellsfargo.com wrote:

> How can I get the tag name of an element and its value at the same time when
> I unmarshall the XML document? I have a requirement to store the tag name
> of an element and its value. I can retrieve the value using the get methods
> i.e. (getAccountType, getAccountNumber1) but I need the associated tag
> names.
>

The expert group decided not to expose the XML tag names in the
Java bindings. There is no way to accomplish this in 1.0, but
the issue will probably be revisted in the next version of the
JAXB specification.

Thanks,

--Ryan



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net