Marshal an attribute in single quotes instead of double possible?

joman77

New Member
I'm using JAXB to marshal an entity of mine into this:\[code\]<User id="blabla">asd,123</User>\[/code\]On the receiving end there is some legacy code that doesn't accept xml attributes with double quotes, just single quotes. So it can't parse my xml.Is it possible to marshal my entity into this:\[code\]<User id='blabla'>asd,123</User>\[/code\]where the attribute \[code\]id\[/code\] is wrapped with single quotes instead of double quotes?
 
Back
Top