0

Below is my actual header

<HEADER ReqNotf="N" TransactionCode="SERVICE_CHANGE" PublisherApplID="CM" PublisherApplThreadID="1" IssueDate="2015-07-15T00:00:00" EffectiveDate="2015-07-15T00:00:00" RoutingId="100107553" DistributionType="SELECTED" BulkTransaction="N" EntityId="100107553" EntityType="CUSTOMER"/>

I want below

<HEADER ReqNotf="N" TransactionCode="SERVICE_CHANGE" PublisherApplID="CM" PublisherApplThreadID="1" IssueDate="2015-07-15T00:00:00" EffectiveDate="2015-07-15T00:00:00" RoutingId="100107553" DistributionType="SELECTED" BulkTransaction="N" EntityId="100107553" EntityType="CUSTOMER" ErrForBD="Y"/>

I have just added ErrForBD="Y" at the end of the header.

Please help me how can I do it?

shilovk
  • 11,718
  • 17
  • 75
  • 74
Arjun
  • 45
  • 2
  • 11

1 Answers1

0

Unfortunately UpdateXML can not insert new attribute.

The current UpdateXML() function can only manipulate the content of existing nodes within an XML document. It cannot be used to add or remove nodes from a document.

You must use insertChildXml

Community
  • 1
  • 1
Marmite Bomber
  • 19,886
  • 4
  • 26
  • 53