Questions tagged [xml]
A simple, very flexible text format that stands for eXtensible Markup Language.
431 questions
0 votes
1 answer
80 views
Wget download wrong content
I'm trying to download a specific sitemap.xml (https://www.irna.ir/sitemap/all/sitemap.xml). The problem is that when you load the specific sitemap.xml for a few seconds one white page with a header ...
1 vote
3 answers
315 views
Sed command not matching and replacing pattern on multi line xml
I have many XML files as below where i would like to replace a string with a new string. I cannot seem to get the sed command to work on the xml files. <form version="1.1" theme="...
-2 votes
1 answer
84 views
Parse txt file on basis of occurrence of a tag in Linux
I am trying to parse a txt file containing xml "messages"in linux, something like this <Document abc xyz .....> <hji> xyz </hji> </Document> <Document abc xyz ........
-1 votes
3 answers
165 views
sed inline not working to modify XML-style input
the problem is that I cannot put the complete command on a line with SED, I had already done it but with those file it does not work: my exemple : <file>Documents/time/text1</file> //2X ...
-1 votes
3 answers
138 views
sed command gets me error Label too long: on solaris
Given database name oltt206 or DB01 i wish to extract its respective username, password and connection string from the xml below: wladmin@myremhost:/tmp$ cat /web/bea_apps/uat/Tomcat_Home_v9.0.56/...
0 votes
2 answers
793 views
Shell command- to extract a string from xml file
There is a function Parse_xml as below Parse_XML() { TDIR=$1 _VERSION= _REVISION= _FILENAME= _COMPONENT= _DESCRIPT= _ISITOA=0 _NOLOG=0 _OAVERSION= local ...
0 votes
1 answer
671 views
libvirt rejects passthrough USB in XML
On a Debian 10 machine, I have a KVM VM with Windows 10. It runs fine. The libvirt version is 5.0.0-4+deb10u1. I want the VM to recognize a video camera that is attached to the Debian host via USB. ...
3 votes
1 answer
449 views
'xmlstarlet edit' using a variable as XPath
When you follow the doc: xmlstarlet edit --help you can read that --var can be used to declare a XPath expression as a variable. Generating moc file: cat<<EOF > /tmp/file.xml <root> &...