cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: Parsing Source into DOM in Flow
Date Sun, 07 Dec 2003 18:03:59 GMT
What errors did you get?

Upayavira wrote:

> Maybe my last question was too specific.
>
> I'm trying to parse the contents of a source into a DOM in Flowscript, 
> but am getting all sorts of errors. Can anyone provide a better way 
> than this (which doesn't work)?
>
> var resolver = 
> cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE); 
>
> var source = resolver.resolveURI("blah.xml");
> var builder = 
> Packages.javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder();

>
> var is = source.getInputStream();
> var dom = builder.parse(source.getInputStream());
>
> Regards, Upayavira
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>



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


Mime
View raw message