05-26-2010
I would say use the right tool for the right job.
Parsing XML in script won't scale, error prone.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to know the way. I have got parsing down some nodes. But I was unable to get the child node perfectly. If you have code please send it. It will be very useful for me. (0 Replies)
Discussion started by: girigopal
0 Replies
2. Shell Programming and Scripting
Hi! I'm just new here and don't know much about shell scripting. I just want to ask for help in creating a shell script that will parse a string or value of the status in the xml file. Please sample xml file below. Can you please help me create a simple script to get the value of status? Also it... (46 Replies)
Discussion started by: ayhanne
46 Replies
3. Shell Programming and Scripting
Hi All,
My requirement is create an unix script to parse the xml file and display the values of the Elements/value between the tags on console. Like say, I would like to fetch the value of errorCode from the below xml which is 'U007' and display it. Can we use SED command for this? I have tried... (10 Replies)
Discussion started by: Anil.Wmg
10 Replies
4. Shell Programming and Scripting
I have an xml file:
<AutoData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Table1>
<Data1 10 </Data1>
<Data2 20 </Data2>
<Data3 40 </Data3>
<Table1>
</AutoData>
and I have to remove the portion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" only.
I tried using sed... (10 Replies)
Discussion started by: Gary1978
10 Replies
5. Shell Programming and Scripting
Hi,
It's been a few years since college when I did stuff like this all the time. Can someone help me figure out how to best tackle this problem? I need to parse a file full of entries that look like this:
<eq action="A" sectyType="0" symbol="PGR" exch="CA" curr="VEF" sess="NORM"... (7 Replies)
Discussion started by: Pcushing
7 Replies
6. Shell Programming and Scripting
Hi All,
I have been working on something that doesn't seem to have a clear regex solution and I just wanted to run it by everyone to see if I could get some insight into the method of solving this problem.
I have a flat text file that contains billing records for users, however the records... (5 Replies)
Discussion started by: Jerrad
5 Replies
7. Shell Programming and Scripting
Hi,
I have to make an script according to these:
- I have couples of files like:
xxxxxxxxxxxxx.csv
xxxxxxxxxxxxx_desc.xml
- every xml file has diferent fields, but keeps this format:
........
<defaultName>2011-02-25T16:43:43.582Z</defaultName>
........... (2 Replies)
Discussion started by: Pluff
2 Replies
8. Shell Programming and Scripting
Hi,
Can anybody help to solve this. I want to parse some xmldata along with the URL in the Shell.
I'm calling the URL via the curl command
Given below is my shell script file
export... (7 Replies)
Discussion started by: Megala
7 Replies
9. Shell Programming and Scripting
I have this XML file -
<gp>
<mms>1110012</mms>
<tg>988</tg>
<mm>LongTime</mm>
<lv>
<lkid>StartEle=ONE, Desti = Motion</lkid>
<kk>12</kk>
</lv>
<lv>
<lkid>StartEle=ONE, Source = Velocity</lkid>
<kk>2</kk>
</lv>
<lv>
... (3 Replies)
Discussion started by: NeedASolution
3 Replies
10. Shell Programming and Scripting
Hi
I have xml file with multiple records and would like to extract records from xml with specific condition if specific tag is present extract entire row otherwise skip .
<logentry revision="21510">
<author>mantest</author>
<date>2015-02-27</date>
<QC_ID>334566</QC_ID>... (12 Replies)
Discussion started by: madankumar.t@hp
12 Replies
LEARN ABOUT DEBIAN
xmlmerge
XMLMERGE(1) XMLMERGE(1)
NAME
xmlmerge - Command line tool for merging XML snippets from multiple files
SYNOPSIS
xmlmerge [options] <input file(s)>
DESCRIPTION
The xmlmerge command collects XML snippets scattered to multiple files and merges them into one big XML tree.
This tool is used by the build process of AqBanking to merge HBCI segment definitions from several files into one big XML file.
OPTIONS
--compact
Try to keep the merged XML data compact.
--header
Add a XML header to the merged XML data.
--help, -h
Output a short usage hint.
--logfile LOGFILE
Write log messages to the file LOGFILE. You need to select the logging type "logfile" for this option having any impact. See also
option "--logtype" for more information.
--loglevel LOGLEVEL
Select the desired log level. Valid values are emergency, alert, critical, error, warning, notice, info, debug and verbous.
--logtype LOGTYPE
Select the desired logging type. Valid values are console, file and syslog.
-o OUTFILE
Write the resulting XML tree to the file OUTFILE. If this option is omitted the result is written to the standard output.
-v
enable verbose output.
--version
-V: Output the version of the xmlmerge tool.
BUGS
There are now known bugs at the time of writing this manual page.
COPYING
Copyright (C) Martin PreuB. Free use of this software is granted under the terms of the Lesser GNU Public License (LGPL).
The manpage was composed by Micha Lenk and converted by the nifty tool AsciiDoc into a manpage.
AUTHOR
Micha Lenk <micha@lenk.info>
Author.
05/10/2012 XMLMERGE(1)