cancel
Showing results for 
Search instead for 
Did you mean: 

DOCTYPE decleration in XML variable

Former Member
0 Kudos

Hi

I am using a local XML variable to build an XML document which I then use HTTP_Post to send to a partner company, and receive data back.

My problem is that the DOCTYPE decleration is being stripped from the XML Variable, so the partner company do not know what to do with the posted doc.

Is there any way I can prevent this being stripped out?

Thanks

Nick

PS The DOCTYPE decleration is also stripped if I use the XMLLoader action.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Nick,

I know this behaviour from MII 12.0. Unfortunalety there is no way to prevent this. What version do you use?

As a workaround you could try to add the DOCTYPE declarations after saving the XML into a string.

First, save all DOCTYPE declarations as a local string. Then create the xml as needed without the DOCTYPEs and save it to a local string property. Finally insert the DOCTYPEs string into the XML String and link the result string to the Payload string of the HTTP_Post action.

Michael

Former Member
0 Kudos

Thanks Michael, it's 12.0.11 (14).

Your reply suggests that later versions are OK? Starting 12.2 soon!

Former Member
0 Kudos

Well, can't tell you if this behaviour has changed in later versions. But you are lucky to take part in the ramp-up!

Please tell us your experience after trying it in the new MII version.

Michael