Skip to content

Commit

Permalink
Fix the object to xml conversion by adding the object property name t…
Browse files Browse the repository at this point in the history
…o the struct's name node
  • Loading branch information
serox-rr committed Dec 30, 2023
1 parent 381eaa3 commit dab6876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/js2xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Js2xml {
for (k in input) {
elements.push(
this.helper.createNode(doc, 'member',
[this.helper.createNode(doc, 'name', name), this.convert(doc, input[k])]))
[this.helper.createNode(doc, 'name', k), this.convert(doc, input[k])]))
}
return this.helper.createNode(doc, 'struct', elements)
}
Expand Down

0 comments on commit dab6876

Please sign in to comment.