Enabled passing of parsed XML document to function retrieveSequence