replace text in XML Node

Sivakatirswami katir at hindu.org
Sun May 8 02:48:45 EDT 2005


XML infant here....


I want to get the text inside an xml node and then do stuff (in this  
case add <br /> html line breaks) and then reinsert that back into the  
node.

this gets me almost there;

put revXMLNodeContents(gCurrTree,"/audio_transcript/transcript_text")  
into tTrans
   replace (cr & cr) with ("<br />"&cr & "<br />" & cr) in tTrans

## now how do I reinsert that back into the node:  
"/audio_transcript/transcript_text"
replacing the previous content?

I don't see an XML command in the Rev library that actually does  
that... or I missed it... I read through all the XML commands (not  
RPC... whatever that is....)

  put tTrans into  
revXMLNodeContents(gCurrTree,"/gurudeva_audio_transcript/ 
transcript_text")

returns an error...


TIA

Sivakatirswami
Himalayan Academy Publications
at Kauai's Hindu Monastery
katir at hindu.org

www.HimalayanAcademy.com,
www.HinduismToday.com
www.Gurudeva.org
www.Hindu.org



More information about the use-livecode mailing list