Questions tagged [xml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
34 views

Disable flycheck in XML files [duplicate]

When flycheck runs when I am editing largish XML files (I believe it is just nxml mode), it tends to slow things to a crawl and then I have to kill emacs since C-g only works for a fraction of second. ...
0
votes
1answer
108 views

Android manifest - find launch activity name programmatically

Is it possible to find the launch class name programmatically? For example, if the manifest is as below: <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" ...
0
votes
1answer
28 views

Mode to edit SQL code inside XML tags [duplicate]

I'm new to emacs, does anybody know is there a way to combine xml-mode and sql-mode so SQL code inside tags can be highlighted and proper indent? example <FnTable ID="MyCode"> declare @ID ...
1
vote
1answer
155 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
34 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
34 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 ...
2
votes
3answers
440 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
42 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 &...
6
votes
1answer
689 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
193 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 ...
2
votes
1answer
29 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
392 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
640 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
595 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
101 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
288 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
874 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
84 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
99 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?
17
votes
5answers
11k 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
487 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?
6
votes
2answers
2k views

How do I use Emacs as a feedly.com client?

Q: How do I use feedly.com as an RSS feed source in Emacs 24.4? I've searched sporadically for months. I haven't found anything to even point me in the right direction to get started. I've opened a ...
42
votes
3answers
6k 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) ...