cancel
Showing results for 
Search instead for 
Did you mean: 

Encoding and Doctype in XML file

Former Member
0 Kudos

Hi,

I have an message mapping that generates me a xml file. But I like/have to change the encoding too. In my case its always "UTF-8" but I need to switch to "iso-8859-1".

How can I change this?

I also need to insert a DOCTYPE line.

I this both possible during message mapping or how can I handle that?

THX

Matt

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Matthias,

You can change the encoding with a XSLT map. Tools like Stylus Studio and XML Spy you can specify what the encoding must be of the result messages.

With a simple java map you can add the Doctype tag, maybe it is also possible in the XSLT map, but I am not quite sure about that.

If you are interested in the Java code for the Doctype, post your email address and I will send it to you.

Cheers,

Frank

Former Member
0 Kudos

Hi Frank,

thanks. My email is boettma1@web.de

Thanks a lot!

Regards Matt

MichalKrawczyk
Active Contributor
0 Kudos

hi Frank,

>>>You can change the encoding with a XSLT map. Tools like Stylus Studio and XML Spy you can specify what the encoding must be of the result messages.

did you test it?

I believe it does not work in the interface mapping

unless you're talking about xslt in the communication channel

Regards,

michal

Former Member
0 Kudos

Hi Michal,

No I did not test this, I only saw the possibility in Stylus Studio.

cheers,

Frank

MichalKrawczyk
Active Contributor
0 Kudos

hi,

I also use stylus and inside stylus it works great:)

but in the XI.... no way

on the other hand docutype works well in the XI - xslt as far as I remember

the only chance is in my opion to do the xslt mapping

in the modules tab (in the communication channel)

but I have to check it one day

Regards,

michal