So the regex works on smaller files?

If so, you may want to use Perl to do this instead.  CF is pretty bad at bulk 
text processing.  I've got some Perl scripts that you could use to do what you 
need, with slight modifications.  Email me off-list if you want to try this 
with Perl. 

> -----Original Message-----
> From: Oðuz_Demirkapý
> Sent: Thursday, March 23, 2006 9:38 AM
> 
> I am just trying to remove blank lines from my generated XML content.
> 
> I have a regex as following.
> 
> <cfset XMLWrite = ToString(XMLdump)>
> <cfset XMLWrite = ReReplaceNoCase(XMLWrite, 
> "[\s]+[#Chr(13)##Chr(10)#]+",
> "#Chr(10)#", "ALL")>
> <cffile action="write"
> file="#getDirectoryFromPath(getTemplatePath())##filename#.xml"
> output="#XMLWrite#">
> 
> But when I have a content which would be more than 5 MB as 
> XML, I get error
> as "500 null" on my CFMX 7.x server.

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236069
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to