[jOOQ/jOOQ#12026] Result.formatXML() re-declares xmlns on each level for nested results
This commit is contained in:
parent
bbadd366e0
commit
59ebd62d27
@ -747,8 +747,10 @@ abstract class AbstractResult<R extends Record> extends AbstractFormattable impl
|
||||
|
||||
try {
|
||||
writer.append("<result");
|
||||
if (format.xmlns())
|
||||
if (format.xmlns()) {
|
||||
format = format.xmlns(false);
|
||||
writer.append(" xmlns=\"" + Constants.NS_EXPORT + "\"");
|
||||
}
|
||||
writer.append(">");
|
||||
|
||||
if (format.header()) {
|
||||
@ -814,8 +816,10 @@ abstract class AbstractResult<R extends Record> extends AbstractFormattable impl
|
||||
String newline = format.newline();
|
||||
|
||||
writer.append("<record");
|
||||
if (format.xmlns())
|
||||
if (format.xmlns()) {
|
||||
format = format.xmlns(false);
|
||||
writer.append(" xmlns=\"" + Constants.NS_EXPORT + "\"");
|
||||
}
|
||||
writer.append(">");
|
||||
|
||||
int size = fields.size();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user