AnsweredAssumed Answered

different number of results with getchildren

Question asked by gokceng on Jul 13, 2010
Latest reply on Jul 26, 2010 by gokceng
var btcFolder = companyhome.childrenByXPath("cm:BTC")[0];

var outgoingFolder = btcFolder.childrenByXPath("cm:Outgoing")[0];

Case 1: var outgoingDocs = outgoingFolder.getChildren();
Case 2: var outgoingDocs = btcFolder.childrenByXPath("cm:Outgoing")[0].getChildren();
Case 3: var outgoingDocs = companyhome.childrenByXPath("cm:BTC")[0].childrenByXPath("cm:Outgoing")[0].getChildren();

in all cases lengths of outgoingDocs are different. number of results returning in each case: Case 3 > Case 2 > Case 1

One more interesting thing , each 3 case returns wrong result. What can it be related to?

Outcomes