cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove first line of outgoing messages: <?xml version="1.0"........

Former Member
0 Kudos

On outgoing messages, when I look in MONI, I see properly formatted XML message.

The first line of all my outgoing files has this line:

<?xml version="1.0" encoding="UTF-8" ?>

Is there a way to suppress this?

If so, is there a way to suppress for only certain partners within one interface?

Thanks,

Jeff

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member200962
Active Contributor
0 Kudos

Check the reply from Gaurav in this thread:

Check if the XSLT approach helps you in removing the XML tag from your payload.

Regards,

Abhishek.

Former Member
0 Kudos

Hi Jeff,

As others pointed without this line the document will not be a valid document. Can you tell your complete requirment. One of these kind of requirement is discussed in this thread, you can see whether its the same in your case or not. If not then tell your complete req. so that somebody can help you out here.

Regards,

---Satish

Former Member
0 Kudos

Hi,

You can build a javamapping to suppress that line. the javamapping is going to be after your principal mapping(Message mapping).

Other option is develop a module for delete that line.

Regards

Ivan

Former Member
0 Kudos

Hi,

the messages in MONI are on the way to (and not processed) by the receiver Adapter.

What kind of receiver Adapter are you using?

Regards

Patrick

Former Member
0 Kudos

well this first line is neccesary to define a XML document, so if you want to delete this first line, is going to be another document.

Maybe you can convert in other type of document.....