Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
You want to make your XML more readable
You have just extracted an XML from a source and it is all un-indented and so not very readable. That happens in my workplace where a single XML can be many MBs in size.
xmllint --format <your_existing_xml_file_name> > new_xml_file_name
If you do not have xmllint installed, you have the perl method. This is slower, but works the same. This is not my code but see the author info. Works good. ...