Refactored the logic to read comments form the static xml.