geckiv wrote:
> I'm tring to figure out why and how name spaces are created usign jaxb.
> I don't know why I get that default
> xmlns="http://www.w3.org/2000/09/xmldsig#" name space.
>
> <?xml version="1.0" encoding="UTF-8"?><jbfsa:forwardRequest
> xmlns="http://www.w3.org/2000/09/xmldsig#"
> xmlns:jbfsa="urn:us:gov:dod:army:cerdec:jbfsa:csds:r1"
> xmlns:ns3="xmlns:jbfsa"><jbfsa:Time>2007-04-11T13:22:47</jbfsa:Time><jbfsa:Item/></jbfsa:forwardRequest>
It just picks up one namespace as the default namespace. Maybe JAXB
should count the number of the namespace URI appearances and choose the
most frequently used one as the default?
See the namespace prefix mapper example to control this behavior by
yourself.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com