users@jaxb.java.net

initcap element names?

From: Dmitri Colebatch <colebatchd_at_gmail.com>
Date: Tue, 21 Jun 2005 17:27:09 +1000

Hi again,

I'm finding the default bindings almost very useful, with one problem
- my schemas have initcap names almost excusively. So I want

@XmlRootElement
@XmlAccessorType(AccessType.FIELD)
class Foo
{
        private String bar;

        public String getBar()
        {
                return bar;
        }

        public void setBar(String bar)
        {
                this.bar = bar;
        }
}

to become

<Foo>
    <Bar>wertyui</Bar>
</Foo>

but unfortunately spits out

<foo>
    <bar>wertyui</bar>
</foo>

I don't suppose there's an easy switch to 'fix' this for me?

cheers
dim