DOM parser dependency removed. Created a method which does custom
parsing as per the input doc structure( it does not adhere to XML
structure).