Pretty printing XML documents on Emacs

I make use of emacs to modify my xml documents (nxml - setting) and also the documents were created by equipment do not have any kind of attractive format of the tags.

I have actually looked for rather printing the whole file with impression and also waiting, yet had not been able to locate an automated means.

Exists a means? Or atleast some editor on linux which can do it.

2019-12-02 02:57:15
Source Share
Answers: 2

Tidy resemble an excellent setting. Have to consider it. Will certainly utilize it if I actually require all the attributes it supplies.

Anyhow, this trouble was irritating me for concerning a week and also I had not been looking effectively. After uploading, I began looking and also located one website with an elisp function which does it respectable. The writer additionally recommends making use of Tidy.

Many thanks for solution Marcel (regrettable I do not have adequate indicate upmod you) .

Will certainly upload concerning it quickly on my blog site. Below is a post about it (with a link to Marcel is website).

2019-12-03 00:59:24

I make use of nXML mode for editing and enhancing and also Tidy when I intend to layout and also indent XML or HTML. There is additionally an Emacs interface to Tidy.

2019-12-03 00:55:44