diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/CDANarrativeFormat.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/CDANarrativeFormat.java index 6615abd20..3e1f94e22 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/CDANarrativeFormat.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/CDANarrativeFormat.java @@ -43,6 +43,7 @@ public class CDANarrativeFormat { */ public XhtmlNode convert(Element ed) throws FHIRException { XhtmlNode div = new XhtmlNode(NodeType.Element, "div"); + div.setAttribute("xmlns", XhtmlNode.XMLNS); processAttributes(ed, div, "ID", "language", "styleCode"); processChildren(ed, div); return div; diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/XhtmlNode.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/XhtmlNode.java index f517fc067..8543406f5 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/XhtmlNode.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/XhtmlNode.java @@ -88,8 +88,8 @@ public class XhtmlNode implements IBaseXhtml { } public static final String NBSP = Character.toString((char)0xa0); - private static final String DECL_XMLNS = " xmlns=\"http://www.w3.org/1999/xhtml\""; - + public static final String XMLNS = "http://www.w3.org/1999/xhtml"; + private static final String DECL_XMLNS = " xmlns=\""+XMLNS+"\""; private Location location; private NodeType nodeType;