Skip to content

Commit

Permalink
Merge pull request #5 from Binary-Serox/main
Browse files Browse the repository at this point in the history
Fix the object property name to xml conversion
  • Loading branch information
francescogabbrielli authored Dec 30, 2023
2 parents 381eaa3 + dab6876 commit 2a4b653
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 2a4b653

Please sign in to comment.