![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|