commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitri Plotnikov" <dmi...@apache.org>
Subject Re: Insert using JXpath?
Date Sun, 23 Nov 2003 20:05:00 GMT
The APIs to insert a node is context.createPathAndSetValue(path, value)

- Dmitri

----- Original Message ----- 
From: "David Rogers" <dave@excira.com>
To: <commons-user@jakarta.apache.org>
Sent: Friday, November 21, 2003 8:35 PM
Subject: Insert using JXpath?


>
>
> Hi,
>
> Im using jxpath with jdom and im wondering if it is possible
> to insert an element between two other elements. I thought
> context.setValue("document/paragraph[3],new Element("paragraph")); for
> examlple
> would do it but this replaces the existing paragraph[3] with the new one..
>
> I need to  insert...how can i do this...with jxpath?
> Or should I just do it the jdom way?
>
> Thanks,
>
> -Dave
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message