Skip to content

How to serialize data to xml using element namespaces? #1985

Answered by mbaltus
stefknecht asked this question in Q&A
Discussion options

You must be logged in to vote

The FHIR specification mentions this on the XML format page:
"FHIR elements are always in the namespace http:https://hl7.org/fhir. This is usually specified as the default namespace on the root element."
The SDK is implemented according to that, so it just puts the namespace on the top level element when serializing the data.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ewoutkramer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants