Return-Path: X-Original-To: apmail-poi-user-archive@www.apache.org Delivered-To: apmail-poi-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DA17BD080 for ; Fri, 31 Aug 2012 07:09:49 +0000 (UTC) Received: (qmail 38793 invoked by uid 500); 31 Aug 2012 07:09:49 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 37733 invoked by uid 500); 31 Aug 2012 07:09:43 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 37674 invoked by uid 99); 31 Aug 2012 07:09:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 07:09:41 +0000 X-ASF-Spam-Status: No, hits=2.4 required=5.0 tests=FROM_LOCAL_NOVOWEL,FSL_RCVD_USER,HK_RANDOM_ENVFROM,URI_HEX X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of markbrdsly@tiscali.co.uk) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 07:09:36 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1T7LLt-00020M-PJ for user@poi.apache.org; Fri, 31 Aug 2012 00:09:13 -0700 Date: Fri, 31 Aug 2012 00:09:13 -0700 (PDT) From: Mark Beardsley To: user@poi.apache.org Message-ID: <1346396953778-5710819.post@n5.nabble.com> In-Reply-To: <1346348957693-5710816.post@n5.nabble.com> References: <1340191134535-5710261.post@n5.nabble.com> <1340264968497-5710270.post@n5.nabble.com> <1340702338477-5710301.post@n5.nabble.com> <1340708442093-5710303.post@n5.nabble.com> <1340792641234-5710312.post@n5.nabble.com> <1340882354425-5710321.post@n5.nabble.com> <1340894909025-5710325.post@n5.nabble.com> <1340981358470-5710333.post@n5.nabble.com> <1346348957693-5710816.post@n5.nabble.com> Subject: Re: How to read the value of bookmarks? (docx) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Hashem. Never expected this piece of code to be used as it is now. The original was written as a proof of purpose really. If I have the time, I will try to post the full chunk again with your modifiication included. Yours Mark B PS I am still convinced there is a better way to crack this particular problem as there are many different scenarios that the code cannot adequately address. The xml markup is subtly different when you are dealing with, for example, a bookmarked table cell and a bookmarked row. Capturing that is the challenge to my mind. Further, I think that the entire philosophy of the code ought to be changed so that it returns the object that was bookmarked allowing the user to find out what that is and then modify it accordingly - text was only the subject bcause the original question asked specifically about getting the contents of a bookmark as text. So, to pursue the example above a little further, it would return either a table cell or a row, the user could then test to find out what had been returned and then modify that accordingly. This would make it far easier to deal with many different possible combinations of inserting 'something' into a document at a bookmarked positions I think. -- View this message in context: http://apache-poi.1045710.n5.nabble.com/How-to-read-the-value-of-bookmarks-docx-tp5710184p5710819.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org