3.1.1.12.2.2.5 Rebuild

 Rebuild(NCRenameDescription) = 
     RebuildFragment01,
     Message,
     RebuildFragment02,
     WhiteSpace,
     RebuildNCs(NCRenameDescription),
     RebuildFragment03,
     WhiteSpace;
  
 RebuildFragment01 = 
     "<action name=\"";
  
 RebuildFragment02 = 
     "\">";
  
 RebuildFragment03 = 
     "</action>";
  
  
 RebuildNCs(NCRenameDescription) = 
     foreach(NCDescription in NCRenameDescription.AllNCs)
         RebuildNC(NCDescription);
  
 RebuildNC(NCDescription) = 
     RebuildNCFragment01,
     NCDescription.Guid,
     RebuildNCFragment02,
     WhiteSpace,
     RebuildNCFragment03,
     NCDescription.NewDN,
     RebuildNCFragment04,
     WhiteSpace,
     RebuildNCFragment05,
     WhiteSpace;
  
 RebuildNCFragment01 = 
     "<move path=\"dn:DC=";
  
 RebuildNCFragment02 = 
     ",DC=INVALID\" metadata=\"0\">";
  
 RebuildNCFragment03 = 
     "<to path=\"dn:";
  
 RebuildNCFragment04 = 
     "\"/>";
  
 RebuildNCFragment05 = 
     "</move>";