Skip to content
Advertisement

Tag: xml-namespaces

jaxb namespace gives unneeded ns2 prefix

I need to generate the namespace into the xml, but this leads to an inconsistent ns2 prefixing that I don’t need (I don’t have mixed namespaces). I tried several solutions i found with no luck. package-info.java POJO marshaller call result Answer The namespace prefix is needed, since you have elements like <subtag> without a namespace. Once you assign a namespace

Advertisement