You may refer to the the below links that consist of the example for parsing XML file using PIG. https://edureka.wistia.com/medias/sxuai72mp6 https://edureka.wistia.com/medias/qhrjcj115n Hope this helps