![]() |
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 |
| UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| print the line immediately after a regexp; but regexp is a sentence | ownins | UNIX for Dummies Questions & Answers | 3 | 11-16-2008 02:30 AM |
| Help with regexp | agasamapetilon | Shell Programming and Scripting | 7 | 09-20-2008 04:30 PM |
| How to read element of line of file | ahjiefreak | High Level Programming | 1 | 04-20-2008 02:21 PM |
| regexp with sed again!!! | andy2000 | Shell Programming and Scripting | 2 | 05-03-2007 10:15 AM |
| regexp | penfold | UNIX for Advanced & Expert Users | 1 | 06-28-2005 07:45 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
read XML xml element with REGEXP
Hi, I would need to read an xml element from an xml file to a local variable. Please could you help me with a shell script to get so? Considering that I have a file called file.xml like below:
<header> <description>This is the description</description> <content>This is the content</content> </header> What I'd like is to assign the value of "description" tag ("This is the description") to a local variable. I guess this could be done by usig regular expressions... Thanks in advance. |
|
||||
|
I should have looked deeper into the Forums. I have found a good solution in How To get the data from a tag in XML File
Thks. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|