I had something similar last night, working on a project...

Before you do your <CFWDDX> tag, inside a CFOUTPUT area, do

#HTMLEditFormat(yourpacket)#

where 'yourpacket' is the variable holding the WDDX packet. See if it spits
out the same way as what you cut/pasted below, or if it's coming up
short/trunicated.

My issue - I store WDDX packets in database fields. The query that would
pull out these packets (and other stuff) worked fine BEFORE I put a "GROUP
BY" on the query - was adding a little bit of complexity. Since you have to
list out all the fields you're selecting in the GROUP BY statement, you have
to list the field holding the packet. For some reason, this was trunicating
the packet in a big way. I ended up removing the packet db field from the
query, and whenever I'm on my double group loop in CFOUTPUT, I do a small
query just to grab the packet by itself, and it works fine.

Hope that helps.
--Scott

----- Original Message -----
From: "Mak Wing Lok" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 8:21 PM
Subject: WDDX problem


> <wddxPacket version='0.9'><header/><data><recordset rowCount='3'
> fieldNames='batchno,Qty,expiryDate,ETA,CA,LU'><field
>
name='batchno'><string>a222</string><string>a123</string><string>a333</strin
> g></field><field
>
name='Qty'><string>1221</string><string>212121</string><string>2112</string>
> </field><field
>
name='expiryDate'><string>1/16/2001</string><string>1/16/2001</string><strin
> g>1/16/2001</string></field><field
>
name='ETA'><string>1/16/2001</string><string>1/16/2001</string><string>1/16/
> 2001</string></field><field
>
name='CA'><string>Yes</string><string>Yes</string><string>Yes</string></fiel
> d><field
>
name='LU'><string>Yes</string><string>Yes</string><string>Yes</string></fiel
> d></recordset></data></wddxPacket>
>
> Is there anything wrong with this WDDX packet?  i manage to WDDX2CFML it
> using CFWDDX, but then when i tried to insert the data into a database it
> failed with the following error message :
>
> XML parsing error: not well-formed (error code 4, line 1, column 21,
buffer
> offset 21)
>
> The error occurred while processing an element with a general identifier
of
> (CFWDDX), occupying document position (13:1) to (13:71).
>
> I'm using the <cfoutput> tag to retrieve the data, should i used another
> method? any help would be very much appreciate.
>
>
> mak wl
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to