Thanx for your kind response..
Yes, i used like that also.. but no result..
Here i am giving indetail..Pls go thru once.. I hope
can understand easily.. And read comment lines also
>From following line onwards Just paste in to yr
coldfusion.. so u can read it easily..
Here i explained the problem by giving the comments..
Pls any one faced this type of problem. how we can
solve it..
Can we send the "&" data in to CFWDDX (action =
wddxtocfml)..
<!--- This is my xmlpacket contains & data,here i am
replacing with ~ data.. --->
<cfset form.xmlpacket =
Replace(form.xmlpacket,"&","~","ALL")>
<cffile action="WRITE"
file="#Received_EZB_PO_XML_Filename#"
output="#form.xmlpacket#"
addnewline="No">
<!--- Start (Use XMLDOM.load to check if EZB PO XML
conforms to DTD or not) --->
<cffile action="READ"
file="#Received_EZB_PO_XML_Filename#"
variable="EZB_OrderXML">
<cffile action="WRITE"
file="#EZB_OrderXML_TempFile#"
output="#EZB_OrderXML#"
addnewline="No">
<!--- Cretaing object of xml dom --->
<cfobject type="COM"
name="xmlDoc"
class="Microsoft.XMLDOM"
action="CREATE">
<cfset xmlDoc.load("#EZB_OrderXML_TempFile#")>
<!--- Parsing the data of Received_EZB_PO_XML_Filename
--->
<CFX_J CLASS = "CFXJ_Parse"
XML =
"#Received_EZB_PO_XML_Filename#"
XSL =
"#WDDX_PO_XML_XSL_Filename#">
<cffile action="WRITE"
file="#Path#\wddx\wddx#timeformat(now(),'Hmmss')#.txt"
output="#wddx_packet#">
<cfset wddx_packet =
Replace(wddx_packet,"~","&","ALL")>
<!--- My question is can i
do like this becos
when i debug this programme i am getting error here..
--->
<CFWDDX ACTION="WDDX2JS"
INPUT="#wddx_packet#"
OUTPUT="WDDXPacket"
TOPLEVELVARIABLE="Whatever">
<!--- *************** --->
<!--- <cfset var1 = Replace(var1,"~","&","ALL")>
--->
<!--- <cfwddx action="WDDX2CFML"
input="#wddx_packet#" output="EZB_PO_WDDX"> --->
<cfwddx action="WDDX2CFML"
input="#var1#"
output="EZB_PO_WDDX">
<cfoutput>09
"#EZB_PO_WDDX.Header.BillToPerson.Address[1].City#"></cfoutput>
<!--- Appended by ramesh deva on 18/1/01 --->
10
#EZB_PO_WDDX.Header.BillToPerson.Address[1].City#
11 <cfset aacity =
Replace(#EZB_PO_WDDX.Header.BillToPerson.Address[1].City#,"~","&","ALL")>
12 <cfoutput> #aacity# </cfoutput>
<!--- Actually i want to remove that ~ mark and
replace with & again.. can we do on " EZB_PO_WDDX " If
yes then how can we solve..
Mannually i mean in 11 th line i have replaced
field wise.. is there any solution to replace whole
packet(EZB_PO_WDDX)
--->
I would appreciate even your valuable suggestions
also..
Thanx in advance
Ramesh
--- "DeVoil, Nick" <[EMAIL PROTECTED]> wrote:
> Ramesh
>
> wddx_packet is a string but output is a complex data
> type depending on what the packet contains.
>
> You could operate on wddx_packet before converting
> it.
> Or would the ampersands invalidate the XML?... try
> it
> & see.
>
> Nick
>
> -----Original Message-----
> From: ramesh deva [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 18, 2001 7:06 AM
> To: CF-Talk
> Subject: Replace function
>
>
>
> Hi
> Here i have wddx_packet variable, it contains text
> file
>
> So my question is can i replace whole file by using
> following code.
>
> Becos when i use this code
>
> <cfwddx action="WDDX2CFML" input="#wddx_packet#"
> output="EZB_PO_WDDX">
>
> <cfset EZB_PO_WDDX =
> Replace(#EZB_PO_WDDX#,"~","&","ALL")>
>
> Getting this error:-
>
> An error occurred while evaluating the expression:
>
>
> EZB_PO_WDDX = Replace(#EZB_PO_WDDX#,"~","&","ALL")
>
>
>
> Error near line 310, column 11.
>
----------------------------------------------------------------------------
> ----
>
> Parameter 1 of function Replace must be a basic
> value,
> i.e., a string, number, logical, or date/time value
> i
> am here
>
> Thanx in advance
> Ramesh
>
>
>
**********************************************************************
> Information in this email is confidential and may be
> privileged.
> It is intended for the addressee only. If you have
> received it in error,
> please notify the sender immediately and delete it
> from your system.
> You should not otherwise copy it, retransmit it or
> use or disclose its
> contents to anyone.
> Thank you for your co-operation.
>
**********************************************************************
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists