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 do | Which approach to use |
|---|---|
| Check the actual tags and characters | Read the raw text in Notepad or a text editor |
| Explore parent and child elements in a tree | Use XML Notepad on Windows |
| Analyze the data as an Excel table | Check the XML structure, schema and Excel import conditions |
| Print a tax invoice or report in its original layout | Check the official output function of the service that created it |
| Reuse the file as an editing project or favorites list | Check 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
- Use File → Open in Notepad or Notepad++ to select your XML copy.
- If the file does not appear, check the file type filter in the Open dialog.
- Look at the XML declaration and root tag near the beginning, and the closing tag at the end of the file.
- Search for a known code or name, then read the surrounding parent and child tags together.
- 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.
- Select your XML copy through File → Open in XML Notepad.
- Check that the file name and location in the address area refer to this copy.
- Expand the root element in the left-hand tree to inspect its children.
- 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.
- Use Edit → Find to locate an item. To see the full structure, use View → Expand All; use Collapse all to fold it again.
- If an Error List appears at the bottom, read the error or warning messages. Double-click an entry to move to the relevant node.
- 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>빨강 & 파랑</note>
</item>
<item code="00456">
<name>가상항목B</name>
<available>false</available>
</item>
</inventory>
| Part | What to read | Meaning in this example |
|---|---|---|
inventory | The outermost element | The parent containing two item elements |
exportedAt="2026-10-19" | An attribute of inventory | The export date chosen for the example |
item code="00456" | An element and its identifying attribute | How to choose the second item |
<name>가상항목B</name> | The content between the opening and closing tags | The second item’s name |
<available>false</available> | The element’s text value | A status value chosen for the example |
& | The XML ampersand reference | Represents & 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 see | What to check | Next step |
|---|---|---|
| Mismatched closing tags or an error at the end of the file | XML syntax or an incomplete download | Compare the error location with the original or a fresh downloaded copy |
| An element, attribute or value fails a requirement | The associated schema’s requirements | Check the schema and version specified by the provider |
| An external DTD or schema cannot be read | External dependencies and access conditions | Ask the provider which files are needed instead of arbitrarily loosening protection |
| The tree appears, but the original document layout does not | Output formatting and the dedicated app’s role | Check the original service’s viewing and output functions |
| XML import fails in Excel | Structure that can map to a table, schema and supported conditions | Read the message to distinguish an XML parsing error from a mapping issue |
| The original app cannot read the file after you save it | The structure and related assets required by the app | Return 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
- Microsoft XML Notepad — official installation and prerequisites ↗
- XML Notepad — tree, node values and Error List ↗
- XML Notepad — opening files, expanding nodes and finding text ↗
- XML Notepad — validation errors and default DTD protection ↗
- W3C — XML syntax, elements, attributes and entity references ↗
- Microsoft — Excel XML import, schemas and error conditions ↗
