![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Remove html tags with bash | dejavu88 | Shell Programming and Scripting | 4 | 05-22-2008 01:58 PM |
| How to remove only html tags inside a file? | btech_raju | Linux | 2 | 11-23-2007 12:25 PM |
| Remove unwanted data? | hitmansilentass | Shell Programming and Scripting | 24 | 05-09-2007 10:50 AM |
| how to close the unwanted portnumbers. | krishna176 | SUN Solaris | 1 | 03-25-2007 02:41 PM |
| cutting unwanted text | sysgate | Shell Programming and Scripting | 2 | 11-29-2006 05:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Remove unwanted XML Tags
I have set of sources and the respective resolution. Please advice how to resolve the same using Unix shell scripting.
Source 1: ======= <ext:ContactInfo xmlns:ext="urn:AOL.FLOWS.Extensions"> <ext:InternetEmailAddress>AOL@AOL.COM</ext:InternetEmailAddress> </ext:ContactInfo> Resoultion 1: ========= < InternetEmailAddress>AOL@AOL.COM</InternetEmailAddress> Note 1 ===== Tags with ContactInfo should not come on to Target and ext: should be removed through out the Source. Similarly Source 2: ======= <e xt:InternetEmailAddress> (Or) <ext:Conta ctInfo xmlns:ext="urn:AOL.FLOWS.Extensions"> Resolution 2 ========= <InternetEmailAddress> - ext: splitted across multiple lines should be removed, this can be splitted across any number of lines also Source 3 ======= <IFeed> <Organization> <Participant>… <ParticipantName>..</ParticipantName> <ParticipantId>…</ParticipantId> </ Participant> </ Organization> </IndicFeed> <IFeed> <Organization> <Participant>… <ParticipantName>..</ParticipantName> <ParticipantId>…</ParticipantId> </ Participant> </ Organization> </IFeed> Resolution 3 ========= <IFeed> <Organization> <Participant>… <ParticipantName>..</ParticipantName> <ParticipantId>…</ParticipantId> </ Participant> <Participant>… <ParticipantName>..</ParticipantName> <ParticipantId>…</ParticipantId> </ Participant> </ Organization> </IFeed> |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|