1. A method for comparing a first XML document with a second XML document comprising: a) parsing, by a computing device, an XML event from the first XML document or the second XML document when an XML event indicator is set, wherein the parsed XML event comprises a start element, the tag value element, and an end element; b) storing, by the computing device, the parsed XML event and storing data associated with a tag value element of the parsed XML event as a node in a first data structure or a second data structure, when the parsed XML event is from the first XML document or the second XML document, respectively, the storing further comprising storing, a tag name, a set of tag attributes, and values of the set of tag attributes of the parsed XML event in in the first data structure or the second data structure when the parsed XML event is the start element parsed from the first XML document or the second XML document; c) comparing, by the computing device, the stored node of the parsed XML event with one or more nodes stored in the first data structure or the second data structure, based on the parsed XML event and a plurality of parameters wherein the comparing further comprises comparing the tag name of the stored node of the parsed XML event with the tag name of a node stored in the second data structure or the first data structure, when the parsed XML event is the start element from the first XML document or the second XML document and wherein setting a node comparison indicator of the stored node of the parsed XML event, the node comparison indicator of the node, and the a comparison indicator to ‘TagMatch’, when the tag name of the stored node of the parsed XML event is equal to the tag name of the node and setting the node comparison indicator of the stored node of the parsed XML event, the node comparison indicator of the node, the status comparison indicator to “TagMismatch”, and the node mismatch indicator to ‘True’, when the taq name of the stored node of the parsed XML event differs from the tag name of the node; d) outputting, by the computing device, a comparison result, based on the parsed XML event and the plurality of parameters, when a node in the one or more nodes stored in the first data structure or the second data structure is a comparable stored node of the stored node of the parsed XML event; e) deleting, by the computing device, the compared stored nodes from the first data structure and the second data structure, based on the parsed XML event and the plurality of parameters, when the compared stored nodes are outputted in the comparison result; f) setting, by the computing device, the XML event indicator to the first XML document or the second XML document on processing the step of parsing, the step of storing, the step of comparing, the step of outputting a comparison result, or the step of deleting, based on the plurality of parameters, performing the step (f), whereby the XML event indicator is set to the first XML document; and g) repeating steps (a) through (e) or step (f) in each iteration, until the first XML document and the second XML document are parsed completely.
18. The method of claim 1 , wherein the step of comparing the stored node of the parsed XML event with one or more nodes stored in the first data structure or the second data structure further comprises: setting, by the computing device, the child node comparison indicator to “True” and the status comparison indicator to “TagMatch”, when a comparable stored node of the stored node of the parsed XML event exists, the parsed XML event is the start element, and the node mismatch indicator is set to “False”; comparing, by the computing device, the set of tag attributes and the values of the set of tag attributes of the comparable stored node with the set of tag attributes and the values of the set of tag attributes of the stored node of the parsed XML event, when the child node comparison indicator is set to “True”; outputting, by the computing device, a difference result comprising differences in the set of tag attributes and the values of the set of tag attributes of the comparable stored node and the stored node of the parsed XML event; removing, by the computing device, the outputted set of tag attributes of the comparable stored node and the outputted set of tag attributes of the stored node from the first data structure and the second data structure after the difference result is outputted; and performing the step (f), whereby the XML event indicator is set to the XML document of the parsed XML event.