The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script for parsing details in a log file to a seperate file pingnagan UNIX for Dummies Questions & Answers 2 11-13-2008 12:21 PM
Parsing and getting data from XML file using ksh script vinna Shell Programming and Scripting 6 12-08-2007 01:10 PM
Help with script parsing a log file mevasquez Shell Programming and Scripting 3 11-15-2007 04:15 PM
Help in parsing a CSV file with Shell script mihirk Shell Programming and Scripting 10 06-24-2007 11:58 AM
Parsing a file in Shell Script sendhilmani123 Shell Programming and Scripting 4 11-30-2006 02:29 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-28-2009
zmfcat1 zmfcat1 is offline
Registered User
  
 

Join Date: May 2009
Posts: 14
XML file parsing using script

Hi
I need some help with XML file parsing. I have an XML file with the below tag,
I need a script to identify the value of srvcName which is this case is "AAA srvc name". I need to put contents of this value which is AAA srvc and name into different variables using an array and then reformat it and put it into a different variable, in this case lets say RESULT. RESULT should look like "AAA\ srvc\ name"


Code:
<platform type="windows" startMenuName="AAA" startMenu="BBB.ico"  addRemoveName="AAA" addRemoveIcon="BBB.ico"
srvcName="AAA srvc name"
 />

What I am trying to do is to retrieve values from a source XML file and write the contents of the value into a target XML file using a shell script. In the target XML file I want to replace lets say a value XXX with "AAA srvc name". Thanks.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0