Skip to content

Fix OutputXML for top-level arrays - #30

Merged
zhengchun merged 1 commit into
antchfx:masterfrom
dajiaohuang:fix/top-level-array-output-xml
Oct 28, 2026
Merged

zhengchun merged 1 commit into
antchfx:masterfrom
dajiaohuang:fix/top-level-array-output-xml

Conversation

@dajiaohuang

Copy link
Copy Markdown
Contributor

Summary

OutputXML used each unnamed top-level array item's value as its XML element name. For example, [1,2,3,4] produced <1>1</1>..., which is not well-formed XML. Use the existing generic element name for unnamed array items (including nested unnamed arrays), and add a regression that parses the output and checks the values.

Validation

  • go test . -run '^(TestArrayToXML|TestToXML|TestOutputXMLEscapesText|TestNestToArray)$' -count=1 — passed.
  • The full workflow suite was not run locally because its LoadURL tests start local HTTP listeners, outside this task's no-services boundary.

@zhengchun
zhengchun merged commit 823396c into antchfx:master Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants