Open XML files — Read tags and attributes, check errors

Last content update 11/2/2026
QUICK ANSWER
XML is text data that uses tags to describe its structure. Copy the original and inspect it in Notepad, or use File > Open in the official XML Notepad to explore a tree on Windows. Read parent and child elements together with their attributes to find the values you need. Displaying an Excel table or the original document layout depends on the structure, schema and dedicated app, so treat that as a separate task from reading the contents.

Check which app created the file and what you want to read

XML is a text format that uses tags and attributes to represent the structure of data. It is used for lists, settings, document data and information exchanged between programs. Being able to read XML as text does not mean you can reproduce the original program’s screen, table or document layout.

First, check which service created the file and whether it contains the data you expected to receive. Keep the original unchanged and inspect a copy, such as 목록-읽기용.xml (a list copy for reading).

What you want to doWhich approach to use
Check the actual tags and charactersRead the raw text in Notepad or a text editor
Explore parent and child elements in a treeUse XML Notepad on Windows
Analyze the data as an Excel tableCheck the XML structure, schema and Excel import conditions
Print a tax invoice or report in its original layoutCheck the official output function of the service that created it
Reuse the file as an editing project or favorites listCheck the original app’s import format and accompanying assets

This article covers reading the raw contents and structure of ordinary XML. Do not simply rename the file to XLSX or PDF. If instructions, a schema or related files came with the XML, keep them with the original.

Read the raw XML in a text editor

  1. Use File → Open in Notepad or Notepad++ to select your XML copy.
  2. If the file does not appear, check the file type filter in the Open dialog.
  3. Look at the XML declaration and root tag near the beginning, and the closing tag at the end of the file.
  4. Search for a known code or name, then read the surrounding parent and child tags together.
  5. If you only inspected the contents, close the file without overwriting the original.

A missing XML declaration alone does not make a file invalid. Some files may also be saved as one long line. If Korean characters appear garbled, check the actual file encoding and how the editor interprets it. Do not overwrite the original by saving it with a new encoding while the text is unreadable.

Explore the tree in XML Notepad on Windows

XML Notepad is a public Microsoft project that displays the XML tree and node values side by side. Check the current requirements, including .NET Framework, in the official installation guide. This is a Windows tool, rather than the same program as a basic text editor on a Mac.

The menu names below follow the official English help. Check the installer, version and your organization’s rules for using software. If your existing text editor is sufficient, you do not need to add another tool.

  1. Select your XML copy through File → Open in XML Notepad.
  2. Check that the file name and location in the address area refer to this copy.
  3. Expand the root element in the left-hand tree to inspect its children.
  4. Select the element or attribute you need and read its value on the right. A parent with children may appear to have no value of its own, so expand its children too.
  5. Use Edit → Find to locate an item. To see the full structure, use View → Expand All; use Collapse all to fold it again.
  6. If an Error List appears at the bottom, read the error or warning messages. Double-click an entry to move to the relevant node.
  7. If you do not intend to edit the file, close it without saving. Use Save As with a separate name only if you want to keep an edited copy.

Reading the tree and viewing XSL output are separate functions. You do not need to run an XSL transformation or allow external DTD processing to read the raw text. XML Notepad documents that DTD processing is disabled by default, so do not start by changing that protection just because a file will not open.

Compare tags, attributes and values in an example

The following is an XML example created for this explanation. It is not a real network list or the export format of a particular service. The Korean names mean “fictional item A” and “fictional item B”; the note means “red & blue.”

<?xml version="1.0" encoding="UTF-8"?>
<inventory exportedAt="2026-10-19">
  <item code="00123">
    <name>가상항목A</name>
    <available>true</available>
    <note>빨강 &amp; 파랑</note>
  </item>
  <item code="00456">
    <name>가상항목B</name>
    <available>false</available>
  </item>
</inventory>
PartWhat to readMeaning in this example
inventoryThe outermost elementThe parent containing two item elements
exportedAt="2026-10-19"An attribute of inventoryThe export date chosen for the example
item code="00456"An element and its identifying attributeHow to choose the second item
<name>가상항목B</name>The content between the opening and closing tagsThe second item’s name
<available>false</available>The element’s text valueA status value chosen for the example
&amp;The XML ampersand referenceRepresents & in the text value you read

To find the second item’s name, locate the two item elements under inventory, choose the one whose code is 00456, then read its name. The value is 가상항목B, and the same item’s available content is false.

The business meaning and intended data types of 00456 in code or false in available depend on the app that created the document and its schema rules. Seeing the tags alone does not prove that numbers, dates or boolean values have been validated.

Distinguish syntax, schema and display problems

What you seeWhat to checkNext step
Mismatched closing tags or an error at the end of the fileXML syntax or an incomplete downloadCompare the error location with the original or a fresh downloaded copy
An element, attribute or value fails a requirementThe associated schema’s requirementsCheck the schema and version specified by the provider
An external DTD or schema cannot be readExternal dependencies and access conditionsAsk the provider which files are needed instead of arbitrarily loosening protection
The tree appears, but the original document layout does notOutput formatting and the dedicated app’s roleCheck the original service’s viewing and output functions
XML import fails in ExcelStructure that can map to a table, schema and supported conditionsRead the message to distinguish an XML parsing error from a mapping issue
The original app cannot read the file after you save itThe structure and related assets required by the appReturn to the original and compare the app’s import requirements

Even if you suspect a syntax error, do not assume the problem is solved after adding closing tags or deleting unfamiliar tags at random. Being able to read the structure and restoring all of the original data are separate checks.

Continue to an Excel table, PDF or the original app

Excel offers ways to import XML data using an XML Map or by inferring a schema from the file. Depending on the XML structure, parsing, schema or table size issues may arise. Do not assume that opening every XML file produces the same table. Check the actual structure and official import conditions.

PDF output is a separate task from reading tags. For a tax invoice or report, check the official viewing, printing or saving function provided by the original service. This guide does not restore service-specific output layouts.

When reusing a file in a program, being able to see its XML text does not prove that the import succeeded. For example, with a network list, check the app-specific result in Advanced IP Scanner’s XML favorites import guide (Korean). You have completed this guide when you can find and explain the elements, attributes and values you need, and distinguish remaining errors or dedicated app requirements.

Sources

Frequently asked questions

Should I always open XML files in Excel?
You can read the raw text of ordinary XML in a text editor. Importing it as an Excel table depends on the XML structure, schema and supported conditions, so do not expect every XML file to produce the same table. Inspecting the contents and importing data into the original app are separate tasks.
Can I just rename an XML file to PDF or XLSX?
Changing the extension does not convert the file. To produce a fixed layout such as a PDF, use the output function of the service that created the XML or a program that supports that format. Do not assume the XML alone contains the entire original document layout.
Is my file damaged if XML Notepad shows an error?
It could be a syntax problem, such as a truncated file or a missing closing tag, or an element or value that does not meet an associated schema's requirements. Record the message and location in the Error List, then compare them with the original file or the provider's instructions.
Which value should I read when a tag such as name appears more than once?
Check the parent element and identifying attributes together. If the example has two item elements, choose the one you need by its code attribute, then read the name inside it. One matching tag found through search does not necessarily represent the value for the entire document.
Can this method restore tax invoices or XML from editing software?
This guide covers reading ordinary XML contents. Official tax invoice output and importing projects into video or music notation software require separate checks of the files, versions and accompanying assets required by that service or product.