Skip to content

Fix OutputXML for top-level arrays - #30

Open
dajiaohuang wants to merge 1 commit into
antchfx:masterfrom
dajiaohuang:fix/top-level-array-output-xml
Open

dajiaohuang wants to merge 1 commit into
antchfx:masterfrom
dajiaohuang:fix/top-level-array-output-xml

Conversation

@dajiaohuang

Copy link
Copy Markdown

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.

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.

1 participant