Add pagination support for xml

Fixes bug 1130622

Change-Id: Id9f39daf634906ee222315586fc9a93916160c3f
Merge "Add pagination support for xml"