I followed the way of this post to select all elements behind divider element, but it is slow with large xml file. XPath select all elements between two specific elements