Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 30403 invoked from network); 23 Nov 2003 20:06:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Nov 2003 20:06:52 -0000 Received: (qmail 29479 invoked by uid 500); 23 Nov 2003 20:06:19 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 29339 invoked by uid 500); 23 Nov 2003 20:06:18 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 29281 invoked from network); 23 Nov 2003 20:06:17 -0000 Received: from unknown (HELO rwcrmhc11.comcast.net) (204.127.198.35) by daedalus.apache.org with SMTP; 23 Nov 2003 20:06:17 -0000 Received: from GATEWAY (pcp02137893pcs.reston01.va.comcast.net[68.48.26.233]) by comcast.net (rwcrmhc11) with SMTP id <2003112320062201300it68ve>; Sun, 23 Nov 2003 20:06:22 +0000 Message-ID: <01d101c3b1fd$145a72a0$0300a8c0@GATEWAY> From: "Dmitri Plotnikov" To: "Jakarta Commons Users List" References: Subject: Re: Insert using JXpath? Date: Sun, 23 Nov 2003 15:05:00 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The APIs to insert a node is context.createPathAndSetValue(path, value) - Dmitri ----- Original Message ----- From: "David Rogers" To: 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