Comparing two XML documents

webmasterbeta

New Member
Hello All,

I am writing a java program(SAX) to compare two XML documents.I am comparing it only based on "elements structure", nothing to do with DTDs or XML schemas or entities.

I am collecting the start tags and end tags of both documents, and checking whether they are equal or not, in the particular order.The order of all start tags and end tags in both documents should be same.

Will this really work, or am I missing any complexity? Are there any other issues I have to look on?

Thank You.
 
Back
Top