Managing Master Data with webMethods OneData 10.5 | Managing Master Data with webMethods OneData | Administering webMethods OneData | Asynchronous Messaging | Working with XML Envelopes for Self Recursive Objects? | Purging Nodes in Self Recursive Objects
 
Purging Nodes in Self Recursive Objects
* To purge nodes in self recursive objects
1. Purge child nodes, using the following code sample as an example.
<?xml version="1.0"?>
<distribution>
<header>
  <onedata_version>8.2.1.0</onedata_version>
  <repository>DEV2</repository>
  <client_id>1</client_id>
  <project_id>1</project_id>
  <objectid>14464</objectid>
  <alternatekey> EMPLOYEE_SR = FNM</alternatekey> 
  <decode>true</decode>
  <processingmode>delete</processingmode> 
  <dateformat>YYYY-MM-DD</dateformat>
</header>
  <data>
   <EMPLOYEE_SR>
    <datarow>
     <FirstName>John</FirstName>
    </datarow>
   </EMPLOYEE_SR>
</data>
</distribution
2. Purge the root nodes using the following code sample as an example.
<?xml version="1.0"?>
<distribution>
<header>
  <onedata_version>8.2.1.0</onedata_version>
  <repository>DEV2</repository>
  <client_id>1</client_id>
  <project_id>1</project_id>
  <objectid>14464</objectid>
  <alternatekey> EMPLOYEE_SR = FNM</alternatekey>
  <decode>true</decode>
  <processingmode>delete</processingmode>
  <dateformat>YYYY-MM-DD</dateformat>
</header>
<data>
   <EMPLOYEE_SR>
    <datarow>
     <FirstName>Manager</FirstName>
    </datarow>
   </EMPLOYEE_SR>
</data>
</distribution>

Copyright © 2011-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.