fix bug generating htmlized XML with no namespaces

This commit is contained in:
Grahame Grieve 2021-03-06 08:57:44 +11:00
parent 0dc44571e6
commit 3d312a1863
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ public class XmlGenerator {
}
private void processElement(Element element) throws IOException, FHIRException {
if (!xml.getDefaultNamespace().equals(element.getNamespaceURI()))
if (xml.getDefaultNamespace() == null || !xml.getDefaultNamespace().equals(element.getNamespaceURI()))
xml.setDefaultNamespace(element.getNamespaceURI());
processAttributes(element);