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
|
Comments
xsd_2 is simply the prefix assigned to the namespace http://voicetechnologies.co.uk/winvoice/importation
Formally your xml looks OK to me.
What problem are you having?
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
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.
Thanks Enrico. I appreciate the feedback