cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <ajuf...@sun3.oulu.fi>
Subject Re: upload an xml file and parse it in a pipeline
Date Tue, 30 Jan 2007 18:36:22 GMT
S├ębastien,

You could try the following:

var s = new Packages.java.lang.String("<?xml version='1.0' ?><doc>" + 
your_data + "</doc>");

var xml = new Packages.org.apache.cocoon.xml.StringXMLizable(s);
var builder = Packages.org.apache.cocoon.xml.dom.DOMBuilder();
xml.toSAX(builder);
var document = builder.getDocument();

Andre

S├ębastien Geindre wrote:
> Hi all,
> 
> I've a form with an upoad widget.
> I'd like to get the xml data which are uploaded and give it to an 
> internal pipeline.
> 
> What i've done transform xml data :
> <information> is transformed to  &lt;information&gt;
> 
> anyone could help ?
> 
> Thancks
> 

-- 
Andre H. Juffer              | Email: Andre.Juffer@oulu.fi
The Biocenter and            | WWW: www.biochem.oulu.fi/Biocomputing/
     the Dep. of Biochemistry | Fax: +358-8-553-1141
University of Oulu, Finland  | Phone: +358-8-553 1161
Triacle Biocomputing         | WWW: www.triacle-bc.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message