Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20-06-2009
Member
 
Join Date: Apr 2009
Posts: 97
KSH script to extra xml data

I'm having a xml file and also new to Unix. So, i'm looking for KSH script in order to get the values from XML file. Can any body tell me that how to use KSH script to extra xml data? Does any body knows about it? Kindly provide me the correct information on the baove issue.
Reply With Quote
  #2  
Old 20-06-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: KSH script to extra xml data

I think you need an XML parser or can use Perl, which still relies on a compiled XML parser. I think you can't use a shell script to parse XML. I think XML parser would be great in order to extra xml data.
Reply With Quote
  #3  
Old 20-06-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: KSH script to extra xml data

Not sure about the following code, but hope so that it might work out for you.


Quote:
sed -n -e "/<isbn>/s/<isbn>\([0-9]*\)<\/isbn>/\1/p" file.xml
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "KSH script to extra xml data"
Thread Thread Starter Forum Replies Last Post
is roaming charged extra using Vodafone data plans? Crista India BroadBand 2 18-07-2012 11:03 AM
New data to the first line in *.csv file via VB Script Conus Software Development 2 12-06-2012 11:04 AM
script to extract data from text file and put into excel format tdubb Windows Server Help 19 17-11-2010 04:19 PM
Script data recovery angmar67 Software Development 2 25-04-2009 12:57 PM
Problem with script in order to open another script in an extra window Samsher Software Development 2 14-01-2009 01:25 PM


All times are GMT +5.5. The time now is 04:31 PM.