[xml] copy node between different docs



Hello,
Can someone tell me the correct process of copying  branches between trees in different docs.

Will this work?
newNP = xmlCopyNode((xmlNodePtr)branchFromTree1,1);
xmlAddChild(branchFromTree2,newNP);

Thanks in advance,
Dan






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]