Reading a formatted xml file

I was sent a xml file. How can I open it on my iMac to see it formatted correctly. I can open it in text but it runs altogether. I can open and see all of the HTML code but I want to see it formatted correctly.

MacBook, OS X 10.11

Posted on Jan 13, 2023 6:03 AM

Reply
3 replies

Jan 13, 2023 6:43 AM in response to nclamj

xml stands for Extensible Markup Language. A xml file is just a text file. Open it with any text editor. You can also open it with a browser.

Here is what an xml file looks like:

<?xml version="1.0" encoding="UTF-8"?>

      <colour-list>

    <colour1> Red </colour1>

    <colour2> Blue </colour2>

<colour3> Green </colour3>

      </colour-list>

What format are you expecting?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Reading a formatted xml file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.