cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Sparkes <>
Subject Re: Cforms - repeater widget - extra whitespace
Date Tue, 16 May 2006 22:34:08 GMT
Hi Patrick,

I am using Cocoon 2.1.9. I am doing the following

//All the ***URI variables are in putted via the sitemap
//create new form
var form = new Form(definitionURI);
 // bind form - builds the binding  using xslt via the sitemap
// parse the xml document, which is to be amended to a DOM-tree
var document = loadDocument(documentURI);
// bind the document data to the form
 // show the form to the user until it is validated successfully
 // bind the form's data back to the document;
 // save the DOM-tree back to an XML file using the saveDocument 
function from the CForm samples
  saveDocument(document, documentURI); 


> Peter Sparkes wrote:
>> Hi,
>> I am using CForms to amend an xml file on the server. Every time the 
>> file is amended it gets a lot of extra whitespace, when it is saved 
>> using the flowscript, wherever there is a repeater widget.
>> Please how can I stop this happening
>> Peter Sparkes
> Hi Peter,
> I think you should give more details about what you mean by "saved 
> using the flowscript". I am not aware of a single way to saving an XML 
> file representation in flowscript (DOM) to a file.
> I do use Cocoon Flow with DOM binding to amend XML files, using 
> repeaters, and did not notice the behaviour you describe. (Using 
> Cocoon 2.1.8)
> Patrick
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message