different number of results with getchildren

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2010 07:55 AM
var btcFolder = companyhome.childrenByXPath("cm:BTC")[0];
var outgoingFolder = btcFolder.childrenByXPath("cm
utgoing")[0];
Case 1: var outgoingDocs = outgoingFolder.getChildren();
Case 2: var outgoingDocs = btcFolder.childrenByXPath("cm
utgoing")[0].getChildren();
Case 3: var outgoingDocs = companyhome.childrenByXPath("cm:BTC")[0].childrenByXPath("cm
utgoing")[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?
var outgoingFolder = btcFolder.childrenByXPath("cm

Case 1: var outgoingDocs = outgoingFolder.getChildren();
Case 2: var outgoingDocs = btcFolder.childrenByXPath("cm

Case 3: var outgoingDocs = companyhome.childrenByXPath("cm:BTC")[0].childrenByXPath("cm

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?
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2010 08:17 AM
var btcFolder = companyhome.childrenByXPath("cm:BTC")[0];
var outgoingFolder = btcFolder.childrenByXPath("cm
utgoing")[0];
Case 1: var outgoingDocs = outgoingFolder.getChildren();
Case 2: var outgoingDocs = btcFolder.childrenByXPath("cm
utgoing")[0].getChildren();
Case 3: var outgoingDocs = companyhome.childrenByXPath("cm:BTC")[0].childrenByXPath("cm
utgoing")[0].getChildren();
these bold-typed variables seem same to me. Am I wrong? Why do they give different results?
var outgoingFolder = btcFolder.childrenByXPath("cm

Case 1: var outgoingDocs = outgoingFolder.getChildren();
Case 2: var outgoingDocs = btcFolder.childrenByXPath("cm

Case 3: var outgoingDocs = companyhome.childrenByXPath("cm:BTC")[0].childrenByXPath("cm

these bold-typed variables seem same to me. Am I wrong? Why do they give different results?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2010 03:17 PM
I wonder whether its related to the number of nodes which are permission checked.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2010 08:19 AM
I wonder whether its related to the number of nodes which are permission checked.Could you explain it a bit clearer?
