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>