How to sort all tags in multigigabyte xml file alphabetically, all equal tags should also be sorted by attributes?
All methods suggested in related questions fail for such large data.
I’m looking for existing tools for Windows or Linux.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As the original goal was to be able to compare to extremely large xmls which contained similar data but in different order I ended up doing splitting xmls in logical chunks (each xml contained thousands of processed documents, and it was split so each document went into separate file with csplit utility), and then compared each pair of equally size documents from two xmls (luckily there were no equally sized documents within one xml).
Not perfect solution but it worked withing reasonable time and space constraints