Results 1 to 3 of 3

Thread: KSH script to extra xml data

  1. #1
    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.

  2. #2
    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.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: KSH script to extra xml data

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


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

Similar Threads

  1. is roaming charged extra using Vodafone data plans?
    By Crista in forum India BroadBand
    Replies: 2
    Last Post: 18-07-2012, 11:03 AM
  2. New data to the first line in *.csv file via VB Script
    By Conus in forum Software Development
    Replies: 2
    Last Post: 12-06-2012, 11:04 AM
  3. Replies: 19
    Last Post: 17-11-2010, 04:19 PM
  4. Script data recovery
    By angmar67 in forum Software Development
    Replies: 2
    Last Post: 25-04-2009, 12:57 PM
  5. Replies: 2
    Last Post: 14-01-2009, 01:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,854,713.36548 seconds with 17 queries