Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xml]

The tag has no usage guidance.

1
vote
1answer
44 views

Multiple modes for one file

I want to be able to use emacs to view log files. There are chunks in the log files that are nicely formatted text, and chunks that are formatted in XML. Is there a way of getting emacs to format and ...
2
votes
0answers
25 views

Collapse xml-node-children from `xml.el` into a string

An API I have used for years (via an elisp package) recently started inserting formatting tags (particularly for <i></i> italics) into the 'ArticleTitle' field of entries. The assumption ...
1
vote
0answers
33 views

Tell emacsclient/server to stop whatever it's doing (from another terminal window perhaps)

I opened an .xml file inside emacsclient -nw not realizing it's large (55MB) Now I'm staring at my terminal/emacs for several minutes. It seems frozen but I know from experience it will eventually ...
1
vote
3answers
161 views

How pretty format XML in Windows?

Windows 10, Emacs 25.1 Is it possible to pretty format XML file? E.g. here not formatted xml: <?xml version="1.0" encoding="UTF-8"?><items xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...
2
votes
0answers
29 views

how can i configure sgml-mode to format open and close tags on same line?

I set up my emacs to use sgml-mode so that I can format xml with M-x reformat-xml, but it puts the closing tags on the line below, rather than on the same line. instead of this: <mytag>stuff &...
5
votes
1answer
321 views

Open SVG files in XML mode

When opening a vector icon text file for editing, Emacs first tries to display it as an image. That is wrong ; If the file has errors, Emacs (25.3.2 - x86_64-pc-linux-gnu, GTK+ Version 3.18.9) crashes ...
1
vote
1answer
94 views

Moving around within xml documents?

Are there any useful functions / modes / hydras / utilities for navigating xml documents? Some features that might be nice to have: Jump to parent Jump to next child Jump to matching tag (like % in ...
3
votes
1answer
27 views

Adding XUL file syntax highlighting support?

I am new on Emacs and I am working on modifying firefox interface. XUL is implemented as an XML dialect. I just need basic syntax highlighting for XUL. I found that VIM and gedit are working out of ...
2
votes
1answer
253 views

How to show XPath for current location in an XML hierarchy in the modeline?

When editing a long Maven pom.xml I may see a screen full of <plugin> blocks with their parent tags out of sight. I would like to know whether I'm looking at a /project/build/plugins/plugin tag ...
1
vote
0answers
471 views

org odt export: how to create a two columns section

In libreoffice I can insert a two column section. In org mode, creating a two_columns page style and use #+ATTR_ODT: :style "two_columns" can produce a two column document, but org mode doesn't seem ...
4
votes
2answers
491 views

One key shortcut to jump two-ways between matching opening/closing tags in nxml mode?

Context Editing an arbitrary XML file in nxml-mode. Need Let's say I have a structure like this: <a> <b>...</b> </a> Let's say the cursor is at the <a>. I'm ...
2
votes
0answers
80 views

Navigating in an nXML buffer

I'm editing an XML with nXML-mode. The file represents a document and has internal links of the form: Follow <linktag docref="foo">this link</linktag> to see <anchortag docref="foo">...
3
votes
0answers
216 views

How to validate nested xml namespaces with associated schemata in nxml?

I often use emacs to edit oozie workflow/coordinator definitions and nxml mode is pretty handy for that. I never bothered much to get more than basic xml validation since schema-based validation ...
4
votes
1answer
655 views

How do I edit an XML file in Emacs with tag autocompletion from a known XSD schema?

I'd like to use Emacs for XML editing. A long, long time ago I recall using pSGML to do that. Now that I've returned to Emacs I'd like to have tag autocompletion and easy navigation in XML files. ...
1
vote
1answer
65 views

org2blog/xml-rpc posting fails with “403”

I've been successfully using org2blog for awhile, but it has stopped working in recent days. When I try to log in from emacs, org2blog asks my password as always. I provide it, and the process fails ...
0
votes
1answer
70 views

Keybinding/Function to Close Xml Tag

In LaTeX-mode, there is latex-close-block, bound to C-c C-e. Is there a function to programmatically close an XML tag in nXML-mode?
13
votes
4answers
7k views

How to prettify/format an XML buffer?

I have a file with xml all on one line. Does the functionality already exist to reformat this buffer to be somewhat user-readable?
0
votes
1answer
407 views

how to fold xml file (or specifically build.xml) [duplicate]

I am using spacemacs nXML mode to edit build.xml (java ant configuration file), the file is very long, how to fold and unfold it?
38
votes
2answers
5k views

The old “how to fold XML” question

I'm doing quite a bit of manual XML editing (the source definition of some code generation I'm doing is a custom XML format) and of course prefer to use Emacs over any special purpose (usually ugly) ...