Convert struct s3_content into a linked list, populate list in
walk_xpath_nodes