Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006
    Posts
    1

    Regarding SedScript and i need very urgently

    Hi,

    Actually i need to convert a word called Terms to terms by using SedScript in a xml file . The following is an Element tag(user-defined tag) which has got Text tag in a xml file.

    <ELEMENT id="E111">
    <TEXT countrynumber="*" languageid="*">Terms </TEXT>
    </ELEMENT>

    so using SedScript i need to check if the element id is "E111" and countrynumber="*" and languageId="*", then change the word Terms to terms

    so i have written the sedscript like
    #change element E111 replace "{Terms} - {terms}"
    /<ELEMENT [ ]*id[ ]*=[ ]*"E111"/,/<\/ELEMENT/ {
    s/Terms/terms/g
    }

    but in the above sedscript, i don't know how to include the condition for countrynumber="*" and languageId="*"

    Can anyone help me

    And this is very urgent

    Regards
    -Nivi

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    EDIT - deleted - I thought I was in another forum
    Testimonial:
    pootle flump
    ur codings are working excelent.

  3. #3
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Moving to Tools....
    Testimonial:
    pootle flump
    ur codings are working excelent.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •