Question
· Jan 16

How to remove "xsd_2" prefix from the XML output when using DLT and XML Schema?

Hi, I am coming unstuck with a current mapping from HL7 to XML using the DTL editor with an XML schema (imported by XSD).

My output keeps prefixing the elements with "xsd_2" despite this not being defined in the targetnamespace within my XSD file. 

Would anyone have any idea as to where this is creeping in? Any advice would be greatly appreciated. 

My XSD namespace etc are setup as follows:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://voicetechnologies.co.uk/winvoice/importation"
           xmlns="http://voicetechnologies.co.uk/winvoice/importation"
           elementFormDefault="qualified"
           attributeFormDefault="unqualified">

 

My XML outputs the following

 

<xsd_2:ClinicalDocument xmlns:xsd_2='http://voicetechnologies.co.uk/winvoice/importation'>
	<xsd_2:Patient>
		<xsd_2:PatientIdentifier></xsd_2:PatientIdentifier>
		<xsd_2:PatientName></xsd_2:PatientName>
		<xsd_2:DOB></xsd_2:DOB>
	</xsd_2:Patient>
	<xsd_2:Document>
		<xsd_2:Speciality/>
		<xsd_2:DateOfDocument>20250107000000</xsd_2:DateOfDocument>
	</xsd_2:Document>
</xsd_2:ClinicalDocument>
Product version: IRIS 2021.1
Discussion (4)2
Log in or sign up to continue