Sponsored Content
Top Forums Shell Programming and Scripting Extract the specific tags in a XML file Post 303005955 by Siv51427882 on Wednesday 25th of October 2017 06:49:03 AM
Old 10-25-2017
Thank You R.Singh.. That worked like a Gem...!!!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

extract specific data from xml format file.

Hi, I need to extract the start time value (bold, red font) under the '<LogEvent ID="Timer Start">' tag (black bold) from a file with the following pattern. There are other LogEventIDs listed in the file as well, making it harder for me to extract out the specific start time that I need. . .... (7 Replies)
Discussion started by: 60doses
7 Replies

2. UNIX for Dummies Questions & Answers

Extract a specific number from an XML file based on the start and end tags

Hello People, I have the following contents in an XML file ........... ........... .......... ........... <Details = "Sample Details"> <Name>Bob</Name> <Age>34</Age> <Address>CA</Address> <ContactNumber>1234</ContactNumber> </Details> ........... ............. .............. (4 Replies)
Discussion started by: sushant172
4 Replies

3. Shell Programming and Scripting

bash extract all occurences delimited from <name> and </name> tags from an xml file

I need to extract all text delimited from <name> and </name> tags from an xml file, but not only first occurence. I need to extract all occurences. I've tried with this command: awk -F"<name>|</name>" 'NF>2{print $2}' but it give only first occurence. How can i modify it? (18 Replies)
Discussion started by: ingalex
18 Replies

4. Shell Programming and Scripting

How to add the multiple lines of xml tags before a particular xml tag in a file

Hi All, I'm stuck with adding multiple lines(irrespective of line number) to a file before a particular xml tag. Please help me. <A>testing_Location</A> <value>LA</value> <zone>US</zone> <B>Region</B> <value>Russia</value> <zone>Washington</zone> <C>Country</C>... (0 Replies)
Discussion started by: mjavalkar
0 Replies

5. Shell Programming and Scripting

Shell script to extract data in repeating tags from xml

Hi, I am new to shell scripting. I need to extract data between repeating tags from an xml file and store the data in an array to process it further. <ns1:root xmlns:ns1="http://example.com/config"> <ns1:interface>in1</ns1:interface> <ns1:operation attribute1="true" attribute2="abd"... (2 Replies)
Discussion started by: sailendra
2 Replies

6. Shell Programming and Scripting

Extract a particular xml only from an xml jar file

Hi..need help on how to extract a particular xml file only from an xml jar file... thanks! (2 Replies)
Discussion started by: qwerty000
2 Replies

7. Shell Programming and Scripting

Extract specific line in an html file starting and ending with specific pattern to a text file

Hi This is my first post and I'm just a beginner. So please be nice to me. I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file? I have tried sed -n 241,241p... (13 Replies)
Discussion started by: dejavo
13 Replies

8. Shell Programming and Scripting

Parse xml in shell script and extract records with specific condition

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

9. UNIX for Beginners Questions & Answers

How can we extract specific elements from XML?

Hi, I have a requirement to extract specific element value dynamically from XML message. Here is the sample message: <File> <List> <main> <dir>doc/store834/archive</dir> <count>5</count> </main> <main> <dir>doc/store834/extract</dir> <count>6</count> </main> <main> ... (3 Replies)
Discussion started by: renukeswar
3 Replies

10. UNIX for Beginners Questions & Answers

How to pull multiple XML tags from the same XML file in Shell.?

I'm searching for the names of a TV show in the XML file I've attached at the end of this post. What I'm trying to do now is pull out/list the data from each of the <SeriesName> tags throughout the document. Currently, I'm only able to get data the first instance of that XML field using the... (9 Replies)
Discussion started by: hungryd
9 Replies
KDOC(1) 						     KDOC Documentation System							   KDOC(1)

NAME
KDOC -- Programmers' Documentation Extraction and Generation Tool SYNOPSIS
kdoc [-DqpieaP] [-f format] [-n libname] [-d outdir] [-u url] [-l lib] kdoc [--help] kdoc [--version] DESCRIPTION
KDOC uses specially formatted comments in your C++ headers and CORBA IDL files to create cross-referenced documentation in various formats. KDOC can also correctly handle "signal" and "slot" specifiers as used by the Qt GUI Toolkit. EXAMPLES
kdoc -f html -d /home/web/komdoc -n kom *.idl kdoc -d /home/web/kdecore -u "http://www.mydomain/kdecore/" -n kdecore ~/kdelibs/kdecore/*.h -lqt OPTIONS
--stdin, -i Read the filenames to process from standard input. Ignored if filenames are specified at the command line. --format <string>, -f <string> Generate output in the specific format. This can be used many times to generate documentation in multiple formats. The default format is "html". See the OUTPUT FORMAT OPTIONS section for a list of available formats. --outputdir <path>, -d <path> Write output in the specified path. --url <url>, -u <url> The URL which will be used for links when cross-referencing with this library. --name <string>, -n <string> Set the name of the library being processed, eg "kdecore" If no name is set, no index file is produced. --xref <library>, -l <library> Cross-reference with the specified library. This will allow referencing of classes etc that exist in the linked library. This option can be specified multiple times. For linking to work, you need to have generated documentation for the linked library with kdoc, so that the necessary index file is produced. --libdir <path>, -L <path> Set the directory that will be used to store the index files generated for cross-referencing. This is also used to search for index files for xref. The default is $HOME/.kdoc. If multiple paths are specified, each will be searched in order of specification on the command line. Unless --liboutdir is specified (see below), the generated .kdoc file will be written to the first path specified with this option. --liboutdir <path> Set the directory where newly created xref libraries (see above) will be written. The default is the libdir. --compress, -z Compress generated KDOC index files with gzip to save space. --private, -p Document all private members. These are not documented by default. --skip-internal, -i Do not document internal members. They are documented as internal by default. --skip-deprecated, -e Do not document deprecated members. They are documented as deprecated by default. --strip-h-path Strip the path from the filenames in the output. PREPROCESSOR OPTIONS
--cpp, -P Pass each source file through the C preprocessor. Currently g++ is required for this, but this requirement will change before 2.0. Directories for inclusion in the preprocessor header search path can be specified via the -I option. --docincluded Parse files that are included by the preprocessor #include macro. This is off by default. -cppcmd <command>, -C <command> Specify the preprocessor command that will be used. The default is: g++ -Wp,-C -E All specified -I paths will be appended to the command. This option quietly enables the -P option. --includedir <path>, -I <path> Add a directory to the preprocessor's header search paths. Requires the -P option. This option can be specified multiple times. OUTPUT FORMAT OPTIONS
html Output documentation in HTML format. This is the default. latex Output documentation as a LaTeX document. man Output documentation as man pages. texinfo Output documentation in texinfo format. You must set the library name with the -n option for the output to be generated. docbook Output documentation in the DocBook SGML format. You must set the library name with the -n option for the output to be generated. check Print a report about the documentation, eg undocumented classes and functions. Output format modifiers --html-css <url> In HTML format, the stylesheet specified by this option will be used by the generated documentation. --html-cols <1, 2 ..> In HTML format, set the number of columns for the Class Index. --html-logo <image url> In HTML format, specify the logo image to display on every page. It will appear to the left of the quick links. CROSS-REFERENCING LIBRARIES FILES
*.kdoc, *.kdoc.gz These are files that contain information about a library that has been processed with kdoc. It is read for cross-referencing with other libraries when the -l option is used. The .gz extension signifies gzipped cross-reference files. kdoc is capable of reading these, and generates them when the -z option is used. ENVIRONMENT
KDOCLIBS If this is set, it is used as the default for the directory where generated cross-reference index files are saved. See also the --lib- dir option. SEE ALSO
See qt2kdoc for info on linking with the Qt docs, and makekdedoc for info on generating documentation for the KDE libraries. BUGS
Lots and Lots. Please send reports to the address kdoc@kde.org. AUTHOR
Sirtaj Singh Kang <taj@kde.org>. KDOC has a web page at: http://www.ph.unimelb.edu.au/~ssk/kde/kdoc COPYRIGHT
The KDOC tool is Copyright (c) 1998 by Sirtaj Singh Kang. KDOC is free software under the conditions of the GNU Public License. 2.0a54 2001-05-20 KDOC(1)
All times are GMT -4. The time now is 05:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy