Use XElement instead of XNode

Changed the definition of ParseInfo , ParseArea , ParseResource to use
XElement instead of XNode .