Skip to content

Document that polymorphic archives require an nvp - #385

Merged
gennaroprota merged 1 commit into
developfrom
doc/document-that-polymorphic-archives-require-an-nvp
Aug 18, 2026
Merged

Document that polymorphic archives require an nvp#385
gennaroprota merged 1 commit into
developfrom
doc/document-that-polymorphic-archives-require-an-nvp

Conversation

@gennaroprota

Copy link
Copy Markdown
Collaborator

Which archive a polymorphic one stands for is settled at run time, so a value written through it has to carry a name in case that archive turns out to be an XML one, where values are elements. A templated XML archive rejects an unnamed value where it is written, but the polymorphic interface cannot: at that point it does not yet know what it is writing to. In the absence of a name, the value goes out with no element around it and the document will not read back.

Reported in #189.

Which archive a polymorphic one stands for is settled at run time, so a
value written through it has to carry a name in case that archive turns
out to be an XML one, where values are elements.  A templated XML
archive rejects an unnamed value where it is written, but the
polymorphic interface cannot: at that point it does not yet know what it
is writing to.  In the absence of a name, the value goes out with no
element around it and the document will not read back.

Reported in #189.
@gennaroprota
gennaroprota added this pull request to the merge queue Aug 18, 2026
Merged via the queue into develop with commit 47ed744 Aug 18, 2026
43 checks passed
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