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
0 votes
1 answer
127 views

How can I view old MSN Messenger, XML chat files in Ubuntu 22.04 as I used to view them in any browser in Windows?

Opening them in any browser in Ubuntu returns a blank page.
Nuno Fonseca's user avatar
0 votes
1 answer
787 views

How to use "sed" for replacing xml tag in multiple lines xml content on bash

I want to use sed to replace the XML tag on bash. Here is the example xml content for testing: <xml-content> <validation> <timeout>2880</timeout> <subject>example</...
stackbiz's user avatar
  • 189
5 votes
2 answers
1k 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
0 votes
1 answer
71 views

issues displaying shoutcast xml data on webpage

I'm lost with how to manipulate xml data. I want to use some data from my shoutcast statistics page. I can access it by going to http://address:port/statistics I cant seem to find a way to access this ...
John Orion's user avatar
  • 2,771
1 vote
0 answers
1k views

Using etree, how can I get all text of an element and its child elements with their tags in an HTML file?

I'm trying to get text data from HTML files and reformat them according to their tags. The HTML file looks like this: <!doctype html> (some HTML code) <section id="descrption"> ...
user282432's user avatar
0 votes
1 answer
270 views

How to keep a custom Gedit Colour Scheme having chosen a general Light/Dark Style in the Appearance Settings tab of 22.04 (Gnome)

Having installed a clean 22.04 on disk, and applying a Dark Style Appearance... I imported a custom Gedit XML style-scheme file (backed up from ~/.local/share/gedit/styles) into Gedit (41.0) via: ...
Broadsworde's user avatar
  • 3,830
0 votes
0 answers
56 views

Gem5ToMcPAT parser Python file

I am trying to convert the output of a gem5 simulator model to an XML form that could be used as an input to McPAT simulator (to get power results). The file that does this conversion is a Python file ...
Jwan Ali's user avatar
0 votes
1 answer
4k views

PHP mbstring, xml and curl setup

My script installation rquires the following setup: sudo apt update, sudo apt install php-curl, sudo apt install php-mbstring, sudo apt install php-xml, sudo service apache2 restart After running the ...
Superb Resource's user avatar
0 votes
0 answers
100 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,238
0 votes
1 answer
3k views

How to use bash/sed to extract XML attribute value

I have the following grep command piped into sed to find an element name attribute and store the sed result into a name variable. name=$(grep -E "<element.*name=.*/>" "$F" | ...
ibwell's user avatar
  • 3
2 votes
1 answer
222 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
  • 811
1 vote
1 answer
104 views

How special characters must be escaped in openbox config file when assigning shortcut-keys?

According to https://stackoverflow.com/a/1091953/ five characters need to be escaped in XML documents under some circumstances: " &quot; ' &apos; < &lt; > &gt; & ...
Name's user avatar
  • 151
0 votes
1 answer
569 views

How can I quote special characters contained inside XML tags?

is possible by simple way replace string (sed) limited inside 2 strings? Example I have xml feed contains many tags, including <DESCRIPTION> tag with special chars inside. I need change special ...
genderbee's user avatar
  • 830
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
  • 137
0 votes
1 answer
705 views

Code to change an xml tag if a certain value exists

This code changes the tag value from false to true if the false tag value exists (which is what I want) But if the tag value in the xml is true this as it is changes all the tags in the xml to true. ...
sql1's user avatar
  • 1
0 votes
1 answer
1k views

How to install Saxon or Saxon-HE with apt or snap?

How do I install saxon so that it's reasonably up to date? The file will be called saxon-he-10.0.jar for Saxon Home Edition, saxon-pe-10.0.jar for the Professional Edition, or saxon-ee-10.0.jar for ...
Nicholas Saunders's user avatar
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
0 votes
0 answers
1k views

how to make awk extract text in xml with a tag that includes quotation marks

Without quotes, it works fine. If the line in cust.xml is : \<span style=CustomerId/>999\</CustomerId> <br> $ awk -F "[><]" '/span style=CustomerId/{print $3}' cust....
Insideup's user avatar
  • 115
0 votes
1 answer
52 views

Change regex's result order after sed as order of ls -v

I am working on 53 xml files (az-0.xml ~ az-52.xml). And I ransed '/<loc>/!d; s/[[:space:]]*<loc>\(.*\)<\/loc>/\1/' az-*.xml > AZ to get all stuff in <loc> and merge them ...
yan chen's user avatar
0 votes
0 answers
220 views

Run a bash command until another command returns no output

How can I make a command run in a while loop until another command returns no output? I want this command: wget https://example.com/example.xml to run until this command: xmllint --xpath 'string(...
GNULinuxOnboard's user avatar
-1 votes
1 answer
403 views

Replace XML tags by numbers

Suppose i have an xml like this <a> hey how are </a> <a> where are you </a> I want to change them and assign number like this-- 1.hey how are 2.where ...
Shrinidhi Kulkarni's user avatar
0 votes
2 answers
435 views

Error invoking ds9 in xterm

I tried invoking ds9 in a xterm, but the last one gave me the following message Error in startup script: can't find package xml while executing "package require xml" ("x11" arm line 10) ...
Santi's user avatar
  • 11
3 votes
2 answers
662 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
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,008
2 votes
2 answers
948 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,008
0 votes
1 answer
4k views

XML output from HTTP request from Terminal

I am sending an HTTP request using curl from Terminal and would like to see or save the output (which by default comes in xml). Here is the code I am using: curl https://catalogue.onda-dias.eu/dias-...
GCGM's user avatar
  • 182
0 votes
0 answers
26 views

Call remote servers using a google cloud product

I have the following use case that I was trying to find a google solution for. I wanted to be able to call a remote server to get some data. The data comes back as XML. Then I wanted to extract ...
Todd Matsumoto's user avatar
2 votes
0 answers
802 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
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,223
7 votes
3 answers
20k 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
1 vote
0 answers
120 views

No manual entry for xerces

How do I install xerces so that I can use it for schema validation? I've tried: libxerces-c-doc libxerces-c-samples libxerces-c3.2 libxerces2-java libxerces2-java-doc Probably it's installed, but ...
Thufir's user avatar
  • 4,443
1 vote
1 answer
1k views

how to read all lines one by one from CSV and create multiple XML files accordingly(one file for one row) using shell scripts

I am trying to write a shell script to create multiple .xml files based on the data read from .csv. I need the help on how to make the loop for each .xml file creation. Rough algorithm for this ...
karthik's user avatar
  • 11
0 votes
0 answers
402 views

how to preserve the order of tags while coverting xml to json in python using xmlutils

I have following xml code chunk: offset len p_val while i covert it to json using below python code the order of tags are changing as below: ...
Sridhar Sri's user avatar
2 votes
2 answers
559 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
  • 57
0 votes
1 answer
148 views

transfer okular annotations to extended pdf

I have an OLD.pdf annotated using okular. I also have a NEW.pdf, which is the OLD.pdf without anotations plus an extra chapter in the end. How can I transfer the annotations from the OLD.pdf to the ...
liaguridio's user avatar
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
2 answers
846 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
0 votes
1 answer
388 views

Let Apache transform XML with XSLT 2.0 automatically [closed]

I'm currently trying to host a little project on my Apache web server. For this project we had the instructions to use XSLT and we always used SAXON to transform our XML to HTML, but I really have no ...
Yanamo's user avatar
  • 1
4 votes
1 answer
900 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
  • 53
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
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
6 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
  • 307
4 votes
2 answers
3k views

Generate Tree Output from Specific/General XML file in Bash

I am trying to generate a tree from a XML file in Bash. This is a part of the XML file: <menu name="main_menu" display="Main Menu"> <application name="load_profiles" display="Load ...
Russo's user avatar
  • 1,848
0 votes
2 answers
461 views

Can I use the character "/" in awk

I am working with some .xml, and I have to extract part of them. I need to extract block between the line where appear >21120352</PMID> and the line where appears </PubmedArticle> But ...
Cesar AJ's user avatar
1 vote
1 answer
2k views

How to take the config.XML field value based on property file value in shell script? [closed]

I have an XML file called config.xml <builders> <hudson.tasks.Shell> <command>$RA_CHEKOUT_SHELL_COMMAND</command> </hudson.tasks.Shell> </builders>...
Ramyachinna's user avatar
-1 votes
1 answer
872 views

How to open an xml file on google earth using a shell command

I have embedded a shell script within a python script to open a xml file with google earth. But google earth throws an error saying it can't read the file but, i am able to open it manually with ...
Krithin SUDHARSAN's user avatar
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
-1 votes
1 answer
3k views

How can I open EML.XML files in Ubuntu 16.04

How can I open these EML.XML files? I know how to acces the ZIP... ;-)
ArnoldusZelf's user avatar
1 vote
1 answer
1k views

Bash history search using arrows, in Guake

I quite like the option to auto-complete terminal commands from history, using keyboard arrows (as explained here, or here). Yet, the configuration in .inputrc does not affect the terminal in Guake. ...
user avatar
1 vote
0 answers
5k views

Why do I get this error trying to run a web project on Tomcat with Eclipse?

I have this error after export a project from Eclipse for Windows (tested in Windows 7 and Windows 10) and importing it to Eclipse for Ubuntu. The error happens when I try to run the project on Tomcat ...
Germán Acosta's user avatar