Question Daniel Durdin · Jan 16, 2025

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

Comments

Daniel Durdin  Jan 16, 2025 to Enrico Parisi

Hi Enrico, 

The current message received by the downstream system does not include the xsd_2 prefix so I am keen to remove this if possible. I just can't figure out where it is being added.

Thanks for your time

0
Enrico Parisi  Jan 17, 2025 to Daniel Durdin

I doubt it's possible to change the prefix in your use case (using virtual XML doc.).

The produced xml is perfectly valid and compliant to the xds, changing the prefix makes no sense.

0
Daniel Durdin  Jan 24, 2025 to Enrico Parisi

Thanks Enrico. I appreciate the feedback

0