[Jprogramming] Poor mans way of creating XML document files in J

Alex Rufon alex_rufon at ist-systems.com
Thu May 6 12:04:07 HKT 2010


Hi Chris,

For the longest time. Let me repeat that, for the longest time ... I've always thought of rplc as handling only 1 change per run. I would normally make an explicity for_xyz. loop to handle multiple replacement. 

Something new every day. :)

Thanks!

r/Alex

-----Original Message-----
From: programming-bounces at jsoftware.com [mailto:programming-bounces at jsoftware.com] On Behalf Of Chris Burke
Sent: Thursday, May 06, 2010 10:26 AM
To: Programming forum
Subject: Re: [Jprogramming] Poor mans way of creating XML document files in J

I'm not sure exactly what you are doing, but just want to point out that
rplc will do several replaces at once:

   'abcdef' rplc 'a';'XY';'de';'DE'
XYbcDEf

On Thursday, May 06, 2010 07:24 AM, Alex Rufon wrote:
> Hi Devon,
> 
> I've been having some trouble using rplc without an explicit loop and your code here is juicy. :)
> 
>>   body=. ;(<xmlUser) rplc&.>  <"1 ,"2 dummies,."(_ 1)rawdata
> 
> Thanks!
> 
> r/Alex
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list