FIre Panda
FIre Panda

Reputation: 6637

Open Huge XML files and Pretty-Print

I need to view XML files, each of 3-4 GB.

Could anybody tell me best free tool/trial version to view huge size XML because if I open it in some editor, its giving me "Out of memory"? I need the pretty-print option as well in it. I tried 010 Editor but it doesn't have pretty-print option in it.

Upvotes: 13

Views: 4672

Answers (1)

Santhosh Kumar Tekuri
Santhosh Kumar Tekuri

Reputation: 3020

pretty print xml using xmllint command:

xmllint --format xml_file.xml > pretty_xml_file.xml

and now you can open pretty_xml_file.xml in vi or your favorite editor

Upvotes: 17

Related Questions