LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices



Old

XML - beautifying

Posted 04-02-2014 at 08:19 AM by sashi_hc
Updated 04-02-2014 at 11:05 AM by sashi_hc

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.

Using xmllint
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.
...
LQ Newbie
Posted in Uncategorized
Views 297 Comments 0 sashi_hc is offline
Old

Format output to columns

Posted 11-09-2010 at 05:08 PM by jere21
Updated 10-09-2011 at 09:08 AM by jere21

Format output, e.g. postings of iptables output or /etc/mtab with column -t

Thanks to http://www.df7cb.de/blog/2010/column_-t.html
LQ Newbie
Posted in Uncategorized
Views 821 Comments 0 jere21 is offline

  



All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration