摘要:
The present invention provides a method and system for comparing a first XML document with a second XML document. An XML event is parsed from the first XML document or the second XML document based on a plurality of parameters. The parsed XML event is stored as a node in a first data structure or a second data structure, and compared with one or more nodes stored in the second data structure or the first structure, respectively. A comparison result is outputted, when the one or more nodes is a comparable node of the stored node, and on outputting the comparison result the comparable node and the stored node are deleted from the first data structures and the second data structures. Aforementioned steps are repeated till the first XML document and the second XML document are completely parsed and compared.
摘要:
The present invention provides a method and system for comparing a first XML document with a second XML document. An XML event is parsed from the first XML document or the second XML document based on a plurality of parameters. The parsed XML event is stored as a node in a first data structure or a second data structure, and compared with one or more nodes stored in the second data structure or the first structure, respectively. A comparison result is outputted, when the one or more nodes is a comparable node of the stored node, and on outputting the comparison result the comparable node and the stored node are deleted from the first data structures and the second data structures. Aforementioned steps are repeated till the first XML document and the second XML document are completely parsed and compared.