cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saskia Heesen" <saskia.hee...@gmx.de>
Subject Re: Access to XML bean elements in flowscript/javaflow
Date Wed, 09 Aug 2006 08:14:24 GMT
"tmp.getNodeValue().getFirstChild().getNodeValue()" doesn't work since "tmp.getNodeValue()"
is null. 

But "tmp.getFirstChild().getNodeValue()" returns the correct value.

So, my problem is solved for flowscript. Thank you all for your good hints and kinds of information.


Now, I will try to implement the access to an XML bean in a javaflow ...

 Saskia


-------- Original-Nachricht --------
Datum: Wed, 09 Aug 2006 08:44:42 +0200
Von: Dennis Dam <d.dam@hippo.nl>
An: users@cocoon.apache.org
Betreff: Re: Access to XML bean elements in flowscript/javaflow

> >
> > When I say
> >
> > tmp.getNodeValue I get "null". How can I receive the value of my bean?
> >
> > Thanks
> >
> >  Saskia
> >   
> I think you should fetch the first text() node of tmp .. tmp is the
> beannumber element.. getNodeValue is just a generic method of the Node interface
> .. so a Node can be an attribute, text node, element, document, etc..
> "getNodeValue" does not return a value for all of these subinterfaces per se. 
> 
> I think "tmp.getNodeValue().getFirstChild().getNodeValue()" should give
> you the correct value. "getFirstChild()" should return the first text node of
> the beannumber element, which holds the actual value.
> 
> 
> Dennis
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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


Mime
View raw message