Use xmlstarlet.

$ cat x.xml 
<?xml version="1.0"?>
<void method="put">
  <string>LANGUAGE</string>
  <string>en</string>
</void>
$ xmlstarlet sel -t -c '/void/string[2]/text()' x.xml
en

Or use xmllint.

$ xmllint --xpath '/void/string[2]/text()' x.xml
en

More about XPath.

Answer from user1907906 on Stack Overflow
๐ŸŒ
Linux Questions
linuxquestions.org โ€บ questions โ€บ linux-software-2 โ€บ xml-viewer-647460
xml viewer
June 6, 2008 - What can I use to view xml files? Are there any recommended xml applications? I can only seem to view them in their raw text file format. The only
๐ŸŒ
GitHub
github.com โ€บ fralau โ€บ xmlshow
GitHub - fralau/xmlshow: Settle for LESS: a fast and super-simple XML viewer for command-line ยท GitHub
xmlshow is a super-simple XML viewer for the Unix command line, which should provide most everything you could wish, since uses the features of less.
Author ย  fralau
Discussions

sed - how to read xml file in linux - Stack Overflow
I have one xml file as below, I need "en" using some unix command. LANGUAGE en More on stackoverflow.com
๐ŸŒ stackoverflow.com
text formatting - How do I actually read an XML file in human form that makes sense? - Unix & Linux Stack Exchange
I downloaded a catalog and it is in XML format. How do change it from code to human-readable form, and ideally save it as a plain text file? I've never worked/seen these before; I tried messing with More on unix.stackexchange.com
๐ŸŒ unix.stackexchange.com
August 1, 2014
linux - Decent KDE XML viewer? - Stack Overflow
what's your XML viewer of choice from within KDE? Something that formats the XML decently. I've searched around but have not found anything reasonable. More on stackoverflow.com
๐ŸŒ stackoverflow.com
Viewing xml data in Linux? - Stack Overflow
I know variations of this question have been asked but I'm still trying to find the best answer. I have xml file which is about 470 MB and I'd like to navigate through it to see what the data looks... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
Qxmledit
qxmledit.org
QXmlEdit - simple XML editor
Chances are that you can find QXmlEdit ... in your Linux distribution. Information about license, source code, support and mailing list in the info page. Hierarchical customizable view of XML elements. Fast XML hierarchy navigation. Split of big XML files. Search supporting XPath expressions. Base 64 data handling. Custom visualization styles. XML Schema (XSD) viewer...
๐ŸŒ
JSON Formatter
jsonformatter.org โ€บ xml-viewer
Best XML Viewer Online
Best and Secure Online XML Viewer works well in Windows, Mac, Linux, Chrome, Firefox, Safari, and Edge.
๐ŸŒ
Wikihow
wikihow.com โ€บ computers and electronics โ€บ operating systems โ€บ linux โ€บ 4 easy ways to run an xml file on linux
4 Easy Ways to Run an XML File on Linux
November 7, 2023 - Navigate to the .xml file you want to view. If you're using Ubuntu, you might use the Nautilus file manager, also known as Files. If you're using KDE, the built-in file manager is Dolphin.[1] X Research source ...
๐ŸŒ
Opensource.com
opensource.com โ€บ article โ€บ 21 โ€บ 7 โ€บ parse-xml-linux
Use XMLStarlet to parse XML in the Linux terminal | Opensource.com
July 16, 2021 - XMLStarlet is installed by default on CentOS, Fedora, and many other modern Linux distributions, so just open a terminal and type xmlstarlet to access it.
Find elsewhere
๐ŸŒ
Linux.com
linux.com โ€บ home โ€บ news โ€บ open source xml editors examined
Open source XML editors examined - Linux.com
February 28, 2005 - KXml Editor is a lightweight XML editor and viewer that interfaces exceptionally well with other KDE applications. You can configure Konqueror to use the KXml Editor KPart as an XML view interface component. With its extensive assortment of excellent keyboard shortcuts, KXml Editor facilitates ...
๐ŸŒ
UbuntuMint
ubuntumint.com โ€บ home โ€บ linux commandline tips โ€บ how to parse or view xml code in linux command line
How to Parse or View XML Code in Linux Command Line
July 24, 2023 - The xmlstarlet command-line-based XML toolkit is associated with a single xml executable. It first needs to be installed on your Linux distribution.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 27940046 โ€บ viewing-xml-data-in-linux
Viewing xml data in Linux? - Stack Overflow
If it is OSM XML (which I guess from the tagging) you can download a smaller xml when clicking e.g. on 'export' of the official osm.org page. Do that for a smaller area and you can open it in a browser and learn about it and start coding how ...
๐ŸŒ
Sourceforge
xml-copy-editor.sourceforge.io
XML Copy Editor
XML Copy Editor is free software released under the GNU General Public License. It is available in Catalan, Chinese (simplified and traditional), Dutch, English, French, German, Italian, Slovak, Swedish and Ukrainian. There are Linux packages for Arch, Fedora, Gentoo, openSUSE, Slackware and Ubuntu.
๐ŸŒ
SourceForge
sourceforge.net โ€บ projects โ€บ xmltreeeditor
XML Tree Editor download | SourceForge.net
Load your XML file to the online XML editor. You can choose any of the methods listed in the menu: paste the data directly to the Input Box, open the file from your local file system or get it from internet By URL.
Rating: 5 โ€‹ - โ€‹ 8 votes
๐ŸŒ
Coderanch
coderanch.com โ€บ t โ€บ 640947 โ€บ os โ€บ open-xml-file-unix
How to open xml file from unix (GNU/Linux forum at Coderanch)
When you ask for commands, I assume you want to view them from the Command Line Interface? vim somefile.xml unzip somearchive.zip
๐ŸŒ
Oxygen XML
oxygenxml.com
Oxygen XML Editor
Oxygen XML Editor is a cross platform tool setting the standard in XML editing. This advanced XML editor provides the most intuitive tools for XML editing, authoring, and development. It is the preferred choice for users looking for an XML Editor for Windows, Mac, and Linux.
๐ŸŒ
SourceForge
sourceforge.net โ€บ home โ€บ open source software โ€บ formats and protocols โ€บ data formats โ€บ xml software
Best Open Source Linux XML Software 2026
Compare the best free open source Linux XML Software at SourceForge. Free, secure and fast Linux XML Software downloads from the largest Open Source applications and software directory