Hi @haritha6 , Please update your code with the below line, It will give
results only for Level -1 Pages. Iterator rootPageIterator =
rootPage.listChildren(new PageFilter(false, false), false); Here,
PageFilter have two parameter as PageFilter(boolean includeInvalid,
boolean includeHidden) and listChilder have two parameter as
listChildren(Filter filter, boolean deep). Hope this could help
you !!! Regards Shiv