fix bug generating htmlized XML with no namespaces
This commit is contained in:
parent
0dc44571e6
commit
3d312a1863
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue