If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Applications & Tools > Regarding SedScript and i need very urgently

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-04-06, 23:32
nive5304 nive5304 is offline
Registered User
 
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
Reply With Quote
  #2 (permalink)  
Old 10-05-06, 04:02
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
EDIT - deleted - I thought I was in another forum
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #3 (permalink)  
Old 10-05-06, 04:04
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Moving to Tools....
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On