Filelume.biz
XML8 min

How to Open and Understand an XML File

Learn how to open, read, and understand XML files using a browser-based viewer.

F

Filelume Editorial

Published 2026-07-24

XML has been a foundational data format for decades. It powers configuration files, RSS feeds, office documents, and countless data exchange protocols. If you have ever opened an XML file in a browser and seen a wall of tags, this guide will help you make sense of it.

What is XML?

XML stands for Extensible Markup Language. It is a text-based format for storing structured data. Like HTML, XML uses tags enclosed in angle brackets. Unlike HTML, XML has no predefined tags — you define your own to match your data.

<?xml version="1.0" encoding="UTF-8"?>
<library>
  <book id="1">
    <title>The Pragmatic Programmer</title>
    <author>David Thomas</author>
    <year>2019</year>
  </book>
  <book id="2">
    <title>Clean Code</title>
    <author>Robert C. Martin</author>
    <year>2008</year>
  </book>
</library>

Where is XML used?

XML appears in many contexts:

  • Configuration files: Many applications store settings in XML.
  • Office documents: .docx, .xlsx, and .pptx files are ZIP archives containing XML.
  • RSS feeds: Blog and news subscriptions use XML.
  • Web services: SOAP APIs communicate using XML messages.
  • Data interchange: Many legacy systems exchange data in XML format.

How Filelume helps you read XML

Opening a raw XML file shows you the source. Filelume provides three views:

  • Tree: An expandable element hierarchy with attribute badges and text previews.
  • Table: When repeated sibling elements form records, they appear as a table.
  • Formatted: Pretty-printed XML with proper indentation.

The Tree view is the default. It shows the document structure clearly, with each element expandable to reveal its children. Attributes appear as badges, and text content is previewed inline.

Understanding XML structure

An XML document has a single root element that contains all other elements. Elements can have attributes (name-value pairs inside the opening tag) and text content. Elements can be nested to any depth.

Key concepts:

  • Elements: <book>...</book> — the basic building blocks.
  • Attributes: <book id="1"> — metadata about an element.
  • Text content: The data between opening and closing tags.
  • Namespaces: Prefixes like xs:element that avoid naming conflicts.
  • CDATA sections: Blocks of text that should not be parsed.

Security when viewing XML

XML can contain dangerous constructs. Filelume blocks DOCTYPE declarations and ENTITY definitions, which are used in XML bomb attacks and external entity injection. Your file is parsed safely, and the content is never rendered as raw HTML.

Exporting XML data

Filelume supports multiple export formats for XML:

  • Print — use your browser's print dialog to make a PDF of the current view.
  • CSV — when repeated elements form a record structure.
  • XLSX — a genuine Excel workbook for tabular XML data.

Start viewing XML files

Open the XML Viewer and load any .xml file. The content stays in your browser, and you can navigate the structure using the Tree view or export tabular data as needed.

All processing happens locally in your browser. Your files never leave your device.

Try the related tool

Open in Filelume