Questions tagged [xml]

A simple, very flexible text format that stands for eXtensible Markup Language, that can be used to exchange, share, and store data. It is easily parsed by computers, but is also readable by programmers. Use this tag for questions related to topics about using XML.

Filter by
Sorted by
Tagged with
11 votes
6 answers
80k views

How can one open an XML file with LibreOffice?

How can one open an XML file, for example with LibreOffice? If I try, all I see is the text format of XML, with tags and so on.
Luigi's user avatar
  • 502
10 votes
5 answers
15k views

How can I convert a CSV file to XML?

How can I convert a CSV file to XML? Is there any software for Ubuntu?
Vitor Mazuco's user avatar
  • 1,441
10 votes
3 answers
13k views

How to remove comments from an XML file?

Is there a command line tool that can remove comments from an XML file? Or do I need to write a small program that makes use of an XML parser to do this? Update: I'm not interested in solutions that ...
Erik Sjölund's user avatar
8 votes
1 answer
4k views

Ubuntu Saucy: What is the default console tool for parsing XML?

I used xmllint package for parsing xml files. Also, I know, that we can use xml2, xmlstarlet too. But I do not see those packages in Ubuntu Saucy. Does Saucy contain any default xml parsers? I ...
user471011's user avatar
  • 3,559
7 votes
2 answers
8k views

How do I increase the terminal border size in xfce?

The terminal (and other applications) borders seem to be only 1 pixel wide which makes them almost impossible to click. I am aware that alt+right click has the same function, but I need the borders ...
Alkthree's user avatar
  • 2,667
7 votes
3 answers
25k views

From XML to CSV with command line

if I have a XML file on local disk, which command is need to convert file in CSV? And from XLSX or XLS to CVS? Thanks.
Noyzware's user avatar
7 votes
2 answers
3k views

Generate tree output from specific/general XML file in Bash

I am trying to generate a tree from an XML file in Bash. This is a part of the XML file: <menu name="main_menu" display="Main Menu"> <application name="...
Russo's user avatar
  • 1,888
7 votes
1 answer
312 views

How do I get a list of all applications that can be executed from Ubuntu Dash Home? Is there is some xml file that stores this information?

I'm building an application and it's very important to me to know how to get this information. In LXDE, there is /usr/share/lubuntu/openbox/menu.xml that lists all the programs that can be executed ...
Zignd's user avatar
  • 10.8k
7 votes
1 answer
2k views

How to tell xmllint not to change <tag></tag> to <tag/>

I accept that it's standard to convert <tag></tag> to <tag/> but the client wants it in the former layout, not the latter. I've looked at various options for xmllint and cannot ...
bugmagnet's user avatar
  • 327
6 votes
3 answers
15k views

How to open .xmi files

Is there any app that can open .xmi files in Ubuntu? File created in the XMI (XML Metadata Interchange) format, an XML file format most commonly used for exchanging UML diagrams; stores model design ...
umpirsky's user avatar
  • 4,050
5 votes
2 answers
2k views

How do I replace multiple fields in multiple XML files?

I have around 4000 XML files and I need to replace the value of both <filename> and <path> fields. I need to replace those fields dynamically. e.g. images0001.xml should have images0001 ...
Axel Boissier's user avatar
5 votes
1 answer
31k views

Convert XML to CSV shell command line

I have a Large XML file (600MB) and i want to convert that into CSV through Terminal Commands. I have tried to convert the XML into TXT through xml2 command using the following syntax. xml2 < ...
HardCode's user avatar
  • 163
4 votes
6 answers
5k views

How to change default application for XML files?

I have Ubuntu 15.10 So changing the default application for XML files gets immediately overridden by the default browser and does not keep the changes. How do you set Gedit as the default ...
cra0zy's user avatar
  • 496
4 votes
3 answers
36k views

Print text between two XML tags

Consider the following excerpt from a large XML file: ... <serverName someKey="false" anotherKey="0.05" thirdKey="0.04"> <default>blah.blah.blah</default> <region ...
Adam Matan's user avatar
  • 12.5k
4 votes
1 answer
2k views

How to change the background to use built-in theme from gnome-terminal profile preferences --> Color using dconf or gsettings?

For gnome-terminal --> Edit --> Preference --> profile --> color, I don't want to "use color from system theme" but use "built-in schemes = Solarized dark". According to this answer, I am able to ...
Sun Bear's user avatar
  • 2,274
4 votes
1 answer
986 views

Script to Create Custom XML Entries for x-wallpapers.xml

I know there is a way to do this, but I just dumped a bunch of my favorite wallpaper files in /usr/share/backgrouds/. In order for my Ubutnu 17.10 to use them, I need to edit the artful-wallpapers....
Rod_H's user avatar
  • 63
4 votes
2 answers
2k views

A script to monitor new files in folder so I can add them to an external XML files

I want to monitor (by cron, I got that part covered :P) new audio files in folders so I can add them toa separate XML files which act as an podcast RSS feed. The file structure looks like this: - ...
Jean-Philippe Murray's user avatar
4 votes
1 answer
2k views

Load configuration from XML (Xfconf)

I'm trying to make an app to switch your XFCE4-Panel's layout between 3 layouts. I applied those layouts and copied the XML file where Xfconf stores its configuration for the panel. The general idea ...
RobinJ's user avatar
  • 8,910
4 votes
1 answer
3k views

How to import xml data to a fillable pdf file in linux?

I have a fillable pdf template. Also have a xml file which is extracted from this fillable pdf file. How can I export xml file from these fillable pdf files and also how can I create a normal pdf ...
OmaL's user avatar
  • 271
3 votes
2 answers
2k views

How do I stop XML Copy Editor from crashing when opening a file? [closed]

I tried installing XML Copy Editor, and whenever I try to open an XML file in it, it crashes. It seems like it just shuts off, as though I clicked close, because it doesn't generate and error log. How ...
Orcris's user avatar
  • 521
3 votes
1 answer
3k views

PDF to XML sure thing, but the other way around?

This is my first post so excuse me if I'm breaking any conventions. Well the thing is I'm developing a long term archive system in Ubuntu environment. For different reasons XML is a very strong ...
Paul Bergstrom's user avatar
3 votes
2 answers
5k views

Visual editor for xslt

I was wondering if it is included in Ubuntu any GUI tool to support the creation of xslt -- bonus points if it also shows how it transforms some reference xml source as I write the xslt document. I'...
fdierre's user avatar
  • 1,023
3 votes
2 answers
663 views

How to modify a file if file contain numbers that begin with '+1'

I am transferring an Android SMS database to my iPhone manually without restoring. Because of the number format of +1562... the iPhone does not recognize the format and creates a new text thread. I ...
abolodo's user avatar
  • 31
3 votes
0 answers
2k views

Virtual Machine Manager not showing edit XML option

I'm looking to use my virtual machine manager to setup a Windows KVM/QEMI. I followed this tutorial... https://www.youtube.com/watch?v=2WDASJ0ye0A It's for Arch Linux but I managed to do it. I'm stuck ...
Lazee Wolf's user avatar
2 votes
4 answers
11k views

How do I extract a single attribute from an XML file?

I'm not really familiar with regex, sed, etc. and a bit lazy to figure it out right this moment, so how do I extract this line: <yweather:astronomy sunrise="6:50 am" sunset="7:06 pm"/> Let me ...
knl's user avatar
  • 127
2 votes
1 answer
284 views

extracting filenames from href elements

I have a document containing a list of files. What is simple way to extract filenames inside the href element (without quotes)and copy them into the list separated by line breaks? <manifest> <...
minto's user avatar
  • 831
2 votes
2 answers
1k views

`wget` does not download all files for svn repository

I tried to download all the data files (in .txt files) from the following link using wget at once. https://svn.sdss.org/public/data/eboss/DR16cosmo/tags/v1_0_0/likelihoods/ Whatever I tried never ...
user43280's user avatar
  • 135
2 votes
1 answer
4k views

How to change values in XML file

I have an XML file like below. I want change the values at default-value place of each argument name using a shell script like: where argument name= protocol and default-value=tcp, where argument ...
Sureshchandra Jarugula's user avatar
2 votes
2 answers
1k views

What do bionic-wallpapers.xml and ubuntu-wallpapers.xml do?

I came across these two files: /usr/share/gnome-background-properties/bionic-wallpapers.xml /usr/share/gnome-background-properties/ubuntu-wallpapers.xml Can you explain what do these files do?
Sun Bear's user avatar
  • 2,274
2 votes
1 answer
2k views

How to replace a xml file line using sed

I have the following text in File.XML: <http-listener name="default" socket-binding="http" max-post-size="1073741824" /> I would like to replace that with <!-- <http-listener name="...
Picasu27's user avatar
2 votes
1 answer
17k views

Is it possible to modify an xml file in Terminal?

I got the following instructions: sudo nano /etc/tomcat7/tomcat-users.xml add a user who can access the manager-gui and admin-gui: <tomcat-users> <user username="admin" password="password" ...
user471011's user avatar
  • 3,559
2 votes
2 answers
354 views

Analyse DMARC reports

I receive Google's DMARC reports daily as a zip file containing an XML file. I manually download each zip file ~/Documents/DMARC. I want to aggregate the information from all the saved DMARC reports ...
Jaydin's user avatar
  • 1,446
2 votes
1 answer
2k views

XSD-1.1 command line validation tool for Ubuntu

I'm looking for a command line tool to validate an XML file with an XSD-1.1 file. I have downloaded and installed libxerces2-java and then tried to apply Free and open source XSD 1.1 validation tool? ...
zx485's user avatar
  • 2,426
2 votes
2 answers
623 views

basex standalone not running 18.04

I would like to use basex to perform xquery operations on xml files, as it appears to be more "transparent" than "query string" based filtering. I installed basex (using APT) on a PC running Ubuntu ...
DrTSPC's user avatar
  • 67
2 votes
2 answers
2k views

xsltproc killed, out of memory

I'm trying to split up a 13GB xml file into small ~50MB xml files with this XSLT style sheet. But this process kills xsltproc after I see it taking up over 1.7GB of memory (that's the total on the ...
David Parks's user avatar
  • 2,516
2 votes
1 answer
372 views

Do dconf use EXI binary XML?

A question came to my mind reading an answer to the question What are the differences between gconf and dconf?. In an reply to the above question, Oli said: Binary read access is far faster than ...
Hibou57's user avatar
  • 1,195
2 votes
2 answers
880 views

Google Earth Pro on 18.01.1 not opening GPX files

I'm having a problem where Google Earth Pro is unable to open a GPX file, i.e. a file from my GPS unit. It can open KML/KMZ files without issue. I'm running the latest updates on 18.01.1 and the ...
Dave's user avatar
  • 31
2 votes
1 answer
4k views

How to convert Microsoft Office XML formated spreadsheet to .xls file

I have an Microsoft Office XML that starts with: <?xml version="1.0"?> <?mso-application progid="Excel.Sheet"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="...
Sashko Lykhenko's user avatar
2 votes
1 answer
3k views

Installing XML-RPC C++

I am trying to install XML-RPC for C++, and it seems like this library is the most often used. However, when building it using ./config, I get the error message: configure: ==>We are not building ...
Teknophilia's user avatar
2 votes
2 answers
294 views

how to check spreadsheet for input errors

I was generating large XLS (Microsof Ofice Excel spreadsheet) file for a client with XML. The file has 72MB and when I try to open it in LibreOffice it crush on "General input/output error" yet when I ...
equivalent8's user avatar
2 votes
0 answers
833 views

I/O warnings and external entities

when entering the input: sudo /usr/bin/vmplayer & I receive the following error in my terminal's verbose output: I/O warning: failed to load external entity "/etc/VMware/hostd/proxy.xml" So my ...
Adam Ledger's user avatar
2 votes
0 answers
1k views

How to extract content from a corrupted .docx file?

I modified a .docx document using LibreOffice when I open it i get this error: File format error found at SAXParseException: '[word/document.xml line 2]: Opening and ending tag mismatch: sdtContent ...
Saad ELALLAM's user avatar
2 votes
0 answers
62 views

Ubuntu phone - how to store data when writing HTML5 app - preferred way

I started creating a simple organizing app for myself, and hit a brick fairly quickly. Wanted to have an XML list of things that would be read and updated by a HTML form. Now I came through ...
Tegeravis's user avatar
2 votes
0 answers
111 views

How to display XML radio information in plain text on Rhythmbox?

My local radio station provide an XML feed on the AAC file. Here is the url : http://ckmf-aac.akacast.akamaistream.net/7/493/102120/v1/astral.akacast.akamaistream.net/ckmf-aac At each song, there is ...
Félix Desjardins's user avatar
2 votes
0 answers
185 views

why does DBUS violate its own DTD?

I was looking at DBUS system.conf. The XML includes a DOCTYPE statement that references the following DTD: http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd However, when I tried ...
David's user avatar
  • 121
2 votes
0 answers
4k views

wget download all web pages from an XML sitemap

I'm trying to mirror and download as static html files all of the links in an XML sitemap file. I found the following command which is supposed to accomplish what I'm trying to achieve but it doesn't ...
user2028856's user avatar
  • 1,181
2 votes
0 answers
973 views

jhbuild sanitycheck failing on Ubuntu 14.04 (Trusty)

I'm trying to set up jhbuild on Ubuntu 14.04. When I run jhbuild sanitycheck, I get two messages: Could not find DocBook XML DTD V4.1.2 in XML Catalog Could not find DocBook XSL Stylesheets in XML ...
James Wyper's user avatar
2 votes
0 answers
544 views

how to read an .atom file from the Data Liberation Front

I downloaded my Blogger history from Google Takeout, and got an '.atom' file. Are there any utilities in Ubuntu that I can use to easily read the archive? It's just an XML file and I can see that ...
user avatar
2 votes
1 answer
614 views

How to interpret the contents of ~/.gconf?

Consider a key like /apps/metacity/global_keybindings/cycle_windows I can access this this key using gconf-editor. However when I cd to ~/.gconf/apps/metacity I find an empty file named %gconf.xml ...
Pouya's user avatar
  • 463
1 vote
1 answer
2k views

How to open .doc files containing XML code in LibreOffice?

I have a .doc file that contains XML formatting code. If I open it on Windows with MS Word it perfectly works showing tables, texts and so on. This is how it looks on MS Word: If I open it in ...
granmirupa's user avatar