commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Per Kreipke" <...@onclave.com>
Subject RE: [jxpath] Using DOM without reloading a file...
Date Tue, 30 Jul 2002 15:31:28 GMT
> > > > - does that mean that I can setValue() on a JXPath context that
> > > > points to a
> > > > DOM node in memory?
> > > You can set/replace textual contents of an element or attribute
> > this
> > > way.
> > 
> > Will it create the needed elements as you dive down? Or do the nodes
> > have to
> > exist already?
> It will not create nodes automatically.  However, if you provide a
> Factory and call "createPath" instead of "setValue", JXPath will call
> back your factory and let it create the necessary nodes.

There isn't already a DOM factory?

> > - when I return the textual value of a DOM element, is it the
> > aggregate of
> > the text of all nested elements too? Hmm. Wait a minute, I think I
> > remember
> > realizing that JXPath only deals with elements as leaves of the XML
> > tree.
> It aggregates all text elements directly owned by the element, any
> nested elements are ignored.

Ok. Thanks.

Per

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message