Subject: Re: bug#79379: [PATCH] 31.0.50; nxml-mode does not provide schema-support for SLNX-files

From: Eli Zaretskii <[email-masked]>
Date: Thu, 04 Sep 2025 08:31:08 +0300

> From: Jostein Kjønigsen <[email-masked]>
> Date: Wed, 3 Sep 2025 21:30:37 +0200
> 
> SLNX is a new XML-based file-format for .NET based solutions, replacing
> the older proprietary SLN file-format.
> 
> Unlike SLN-files, it is merge-friendly and expected to become the new
> the de-facto standard for working with .NET projects. This commit adds
> support for SLNX-schema to nxml-mode.
> 
> When opening SLNX-files in Emacs and activating nxml-mode, no special
> schema-validation or completion/assistance is provided.
> 
> Attached is a patch which corrects this situation.

Thanks.

> (SLNX-files not added to any auto-mode-list, because I couldn't
> find where/if that is done in the nxml-mode codebase).

It's in files.el, where auto-mode-list is set up:

    ("\\.x[ms]l\\'" . xml-mode)

and "C-h f xml-mode RET" says

  xml-mode is an alias for ‘nxml-mode’ in ‘nxml-mode.el’.