java - Duplicate namespace declarations in JAXB generated XML -


I am using JACAB to generate XML from Java object, this is a real time, high enough message rate The application is PM. However, sometimes and without any obvious clues, I get duplicate namespace delivery in the XML generated. Example:

& lt; UpdateRequest xmlns = "http://xml.mycomp.com/ns/myservice" xmlns = "http://xml.mycomp.com/ns/myservice" & gt; & Lt; Field 1 & gt; Price & lt; / Field 1 & gt; ... & lt; / UpdateRequest & gt;

Has this behavior been seen before?

Check whether the xsd code of this class permits creation of more than 1 instance of repeated attribute . If so, you can avoid this recurrence that sets the number of examples of the xmlns attribute for each UpdateRequest object.

If the problem is your code, maybe this attribute is being created twice) and you have limited the number of examples of the attribute (as I said above), the program will show an error on the runtime. You are trying to incorporate a pre-defined feature.


Comments

Popular posts from this blog

php - multilevel menu with multilevel array -

c# - TypeConverter in propertygrid only converts from string, not to -

jQuery UI: Datepicker month format -