-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON input to XML output renders empty xmlns attributes in narrative #193
Comments
I'm seeing much the same problem but I'm not using Spark, I'm only using the FHIR API (STU3 May2016) creating a ValueSet and setting the narrative with a very simple table like so:
What comes out after seriaizing to XML is this narative element :
|
I note that your div element that you are putting into the structure doesn't have the namespace already declared. I believe you should be putting this into the content when you create it. This is what I have in all my Narratives that I generate in sqlonfhir. |
Thanks, Brian that worked a treat! I guess, given that without me specifying the namespace the fact that it did add the correct namespace to the first element lead me to believe that it was trying to do it for me, yet had a bug. Although now I know the trick all is good. Thanks again for you help. |
Maybe we could include some validation that throws an exception if you don't provide it, or at least a trace message and debugger break to slap the developer (that wont happen without a debugger attached) |
I think the behaviour will become unpredictable if we do that, so I'd rather no do too much magic... |
Originally mentioned as issue #81 on Spark. See there for an example.
The text was updated successfully, but these errors were encountered: