Skip to Content
0

How to insert before a context element

Jan 15, 2017 at 11:31 AM

49

avatar image

Hi everybody,

In UDF I used the below function.

StructureNode node = ((StructureNode) container.getParameter("STRUCTURE_NODE")); node.setPostValue("<?xml version=\"1.0\" encoding=\"utf-8\"?>"); return"";

The output like this:

ED15FE4865E42E88 aezeroglu btc@Zorluhttp://zorlu.com/UPSIntegrations"> ED15FE4865E42E88 aezeroglu btc@Zorlu> <?xml version="1.0" encoding="utf-8"?></AccessRequest><AddressValidationRequest><Request><TransactionReference><CustomerContext></CustomerContext></TransactionReference><RequestAction></RequestAction></Request><Address><City></City><StateProvinceCode></StateProvinceCode><PostalCode></PostalCode></Address></AddressValidationRequest></ns2:JSON>

But I want to second <?xml version="1.0" encoding="utf-8"?> after </AccessRequest>

How can I solve this problem?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers