Jim, I have a thought. If you are like me, you might use <cfsetting enablecfoutputonly="yes"> to cut down on white space. If you use this settng at the top, then use <cfoutput> to create your packet and to store it in a var.... as in:
<cfsetting enablecfoutputonly="yes"> <Cf_Mytag> <wddxPacket version="1.0"> <header></header> <cfoutput query="blah"> <!--- bunch of structure creation code ---> <data> <struct> ... </struct> </data> </cfoutput> </wddxPacket> </cf_MyTag> The end result with be a wddx packet without the head and tail - which would produce the error you reference. The <cfsetting> tag could also be in the custom tag as well. That sort of thing has happened to me before. That's my only thought - my mind is peaceful blank now <ha>. -mk -----Original Message----- From: Reilly, Jim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 10:58 AM To: CF-Talk Subject: RE: WDDX Error in CFMX Raymond, 1) There is no datetime tags. 2) There are no quotes as keys, just in the values. 3) I added the Trim. Still no luck! I appreciate the help!!! You or anyone else have a thought...? Tkx, Jim Tkx, James M. Reilly GlobalSpec 350 Jordan Road Troy, NY 12180 Tel: 518.880.0200 x318 Fax: 518.880.0250 -----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 11:28 AM To: CF-Talk Subject: RE: WDDX Error in CFMX Importance: Low There are two confirmed WDDX bugs that may be affecting you: 1) Does your packet contain any date time info? Any large packet with datetime info will not be deserialized. You must do a regex and replace any <datetime>...</datetime> with <string>...</string> This will have zero impact on your ability to use the data. 2) Does your data contain a structure with a key containing a single quote? Ie, <cfset foo["ray's world"]>. This will not be deserializable. Also - try adding a trim around the ThisTag.generatedcontent. ======================================================================= Raymond Camden, ColdFusion Jedi Master for Hire Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Reilly, Jim [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 24, 2002 11:12 AM > To: CF-Talk > Subject: WDDX Error in CFMX > > > I am testing on CFMX Pro box, that has code that currently > works in CF 5. > > I am getting this error: > WDDX packet parse error at line 1, column -1. Document root element is > missing.. > > From this line: > <cfwddx input="#ThisTag.GeneratedContent#" output="tempVar" > action="wddx2cfml" validate="no"> > > (Note: The WDDX packet is rendered from a servlet, ie: our > own wddx packet). > The packet is about 40940 bytes in length. > > 1.) Is there a wddx length restriction? (as possible seen > from CF Forums?) > > 2.) Or any other wddx oddities or change in definition in > wddx from CFMX? > > > Here are the top and bottom headers: > <wddxPacket version="1.0"> > <header></header> > <data> > <struct> > ... > </struct> > </data> > </wddxPacket> > > > > > Tkx, > James M. Reilly > GlobalSpec > 350 Jordan Road > Troy, NY 12180 > Tel: 518.880.0200 x318 > Fax: 518.880.0250 > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists