If your 5MB xml file contains more than one line, I think vgersh99's script will produce more output than you want. If you are using a system where awk and sed have limited line lengths, both Yoda's script and vgersh99's script could fail if your xml file contains long lines.
The following awk script should get around these problems:
If you want to run this on a Solaris/SunOS system, change awk to /usr/xpg4/bin/awk, /usr/xpg6/bin/awk, or nawk.
With your sample input, the above script produces the output:
Please help me on this.....
i have a file which has following content:
<IPCoreProducerConfig>
<Producer>
<config>
<key>machineId</key>
<value>machine1</value>
</config>
<config>
... (4 Replies)
Hello,
I trying to extract text that is surrounded by xml-tags. I tried this
cat tst.xml | egrep "<SERVER>.*</SERVER>" |sed -e "s/<SERVER>\(.*\)<\/SERVER>/\1/"|tr "|" " "
which works perfect, if the start-tag and the end-tag are in the same line, e.g.:
<tag1>Hello Linux-Users</tag1>
... (5 Replies)
Hi,
My requirement is to find a text and replace it with another in a XML file.
I am new to Unix,Please provide some suggestion to achieve.
Find:
<Style ss:ID="ColumnHeader1">
Replace with:
<Style ss:ID="ColumnHeader1">
<Borders>
<Border ss:Position="Bottom"... (4 Replies)
I have a .xml file similar to the following:
<Column>
<Name>FIELD1</Name>
<Title>CO.</Title>
</Column>
<Column>
<Name>FIELD2</Name>
<EditField>TextBox</EditField>
<ColumnSpan0>4</ColumnSpan0>
<Title>NORMAL</Title>
... (12 Replies)
I need to create a xml file(master.xml) with contents from another xml files(children). I have below list of xml files in a temporary location (C:/temp/xmls)
1. child1.xml
2. child2.xml
Below is the content of the child1.xml & child2.xml files,
child1.xml
<root>
<emp>
... (3 Replies)
Am using the following grep to match a particular patter in grep.
grep xyz abc.txt
now while i run this command, if the pattern matched, am getting the line containing xyz
Output: xyz is doing some work
Now if i want the file name also along with my output, what should i do
Expected... (2 Replies)
Hello All,
Hope you are doing well!!!!!
I have a small code in the below format in xml file:
<UML:ModelElement.taggedValue>
<UML:TaggedValue tag="documentation" value="This sequence

HLD_EA_0001X
HLD_DOORS_002X"/>
<UML:TaggedValue tag="documentation" value="This... (11 Replies)
I have 2 XML Data files with a tag named PARTICIPATION_TYPE and i am trying to grep for that and getting unique values. However one of the xml data file data is not aligned properly like below.
File 1: (works fine when i do grep) grep "PARTICIPATION_TYPE" file1.xml | sort -u
Data:
....... (3 Replies)
Dear community,
I have a big XML log file containing several rows splitted by tag: <ActivityLogRecord> and </ActivityLogRecord>. An example below.
What I need is read the file and extract some value from each tags and put them into one line (each line for every <ActivityLogRecord> tag).
So... (5 Replies)
Discussion started by: Lord Spectre
5 Replies
LEARN ABOUT DEBIAN
google-sitemapgen
GOOGLE-SITEMAPGEN(1) General Commands Manual GOOGLE-SITEMAPGEN(1)NAME
google-sitemapgen -- simple script to automate production of sitemaps for a webserver
SYNOPSIS
google-sitemapgen [--testing] [--help] [--config=config.xml]
DESCRIPTION
This manual page documents briefly the google-sitemapgen command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
google-sitemapgen is a program that automatically produces sitemaps for a webserver, in the Google Sitemap Protocol (GSP). Sitemap files
are XML listings of content you make available on your web server. The files can be directly submitted to search engines as hints for the
search engine web crawlers as they index your web site. This can result in better coverage of your web content in search engine indices,
and less of your bandwidth spent doing it.
OPTIONS --config=config.xml
Specify the location of the configuration config.xml
--testing Used to test the sitemap generator configuration.
--help Display a summary of options and exit.
SEE ALSO
/usr/share/doc/google-sitemapgen/examples/example_config.xml.gz
AUTHOR
Google Sitemap was originally written by Google Code <opensource@google.com>.
This manual page was written by Kumar Appaiah <akumar@ee.iitm.ac.in> for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub-
lished by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
GOOGLE-SITEMAPGEN(1)