I’ve been having a problem with comparing two similar XML files. My main objective with this is to compare the megacorpInfo.xml and megacorpinfocomp.xml (sorry about similar names, was lazy about naming them), and get elements only in the megacorpInfocomp.xml file and then output that to another text file.
The expected output would be a text file with the elements (unique “Details-Collection” and anything inside that) only found in the megacorpInfocomp.xml. I haven’t made that file yet, but we can call it something like megacorp_New.xml.
quickpay should be in every detail-collection, that might be an error on my part.
I don’t need to know any of the elements values/attributes besides the Detail-Collection’s PO-number to compare it between both files (might compare the PO-Number tag value if that doesn’t work). All I’m trying to get is the Detail-Collections and its descendants only found within the megacorpInfocomp.xml.
So you can say I only need to know the unique detail-collection tags.