Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home

Opening and Reading XML Files

Last updated on 27 July 2022

Vault event log

Overview

There are multiple areas in M-Files that give you the option to export configurations or logs that will output to XML files.

Some examples of this would be the Vault Event Logs (https://www.m-files.com/user-guide/latest/eng/Event_log.html) and doing a structure export (https://www.m-files.com/user-guide/latest/eng/Export_content.html)

This article will cover some methods for opening, reading, and editing those XML Files.

"Default" options

Most solutions will require a 3rd party application. The two main ways to open these files without such an application would be via a basic Text editor such as Notepad or via a web Browser.

Any text editor should be able to open the files and allow for editing but most will leave it in a very unreadable format.

image.png

Any modern browser should be able to read the XML files by default and it will be in a much more readable format. However browsers tend to have sever performance issues when working in large XML files and also tend to prevent editing.

image.png

Solution

You want an application that can "Beautify" the XML. There are various great options for that.

Note that M-Files does not recommend or endorse any third-party solution or product, these are just examples and ideas.

NOTE: Using a third-party (especially online) service may expose your data and carries privacy and security risks, even legal risks.

A common option is a text editor that has built in functionality for beautifying XML, or that will let you load a module that will handle it for you. Notepad++ (https://notepad-plus-plus.org/downloads/) is a free open-source program that has preexisting modules for this purpose. (such as https://community.notepad-plus-plus.org/topic/16983/xml-tools/3)

image.png

Other such tools could be Visual Studio Code and other software (source) code editors.

Excel works great for grouping, viewing, and reporting on XML files such as the Event Logs.

image.png

*Working with Excel does require knowledge working with Power Query or Excel Data Models.

Still need help?