Hello, I’m using XMLBeans 2.6.0 to generate a document based on HL7 CDA. I am setting an attribute on an element and the output looks like:
<code xmlns:urn="urn:hl7-org:v3" xsi:type="urn:CE" code="NI" codeSystem="2.16.840.1.113883.6.96" displayName="NI”> I would like it to look like this: <code xsi:type="CE" code="NI" codeSystem="2.16.840.1.113883.6.96" displayName="NI”> Here’s the document namespace declaration: <ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance”> I’m setting the following in XmlOptions: setUseDefaultNamespace(); setSavePrettyPrint(); setSaveSubstituteCharacters(createXmlOptionCharEscapeMap()); setSaveSuggestedPrefixes(createSuggestedPrefixes()); setSaveImplicitNamespaces(createImplicitNamespaces()); setSaveNamespacesFirst(); setSaveAggressiveNamespaces(); And my namespace map is: map.put("urn:hl7-org:v3", ""); map.put("http://www.w3.org/2001/XMLSchema-instance", "xsi”); Is there anyway I can get XmlBeans to emit the “code” element without redeclaring the namespace? Thanks, Ted --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org For additional commands, e-mail: user-h...@xmlbeans.apache.org