I tried to do this:
WDCopyService.copyElements(wdContext.nodeResponse25(), wdContext.nodeHeader2());
However it gives the error:
"Node(DemoWSViewSearchOrder.Order.Header2): cannot bind or add elements because the node has no valid parent"
So I initiate the node with this:
IPrivateDemoWSViewSearchOrder.IHeader2Element ele2 =
wdContext.nodeHeader2().createHeader2Element();
wdContext.nodeHeader2().addElement(ele2);
However it is still giving the error:
"Node(DemoWSViewSearchOrder.Order.Header2): cannot bind or add elements because the node has no valid parent"
Any idea why?