Thanks, it worked! The problem was that all elements are child elements therefore nothing was read before the child elements.