Return-Path: Delivered-To: apmail-incubator-abdera-user-archive@locus.apache.org Received: (qmail 71896 invoked from network); 30 Oct 2007 13:52:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2007 13:52:29 -0000 Received: (qmail 1218 invoked by uid 500); 30 Oct 2007 13:52:01 -0000 Delivered-To: apmail-incubator-abdera-user-archive@incubator.apache.org Received: (qmail 1184 invoked by uid 500); 30 Oct 2007 13:52:01 -0000 Mailing-List: contact abdera-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-user@incubator.apache.org Delivered-To: mailing list abdera-user@incubator.apache.org Delivered-To: moderator for abdera-user@incubator.apache.org Received: (qmail 96775 invoked by uid 99); 30 Oct 2007 01:46:34 -0000 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Message-ID: <47268CED.2030201@nealeupstone.com> Date: Tue, 30 Oct 2007 01:46:21 +0000 From: Neale User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: abdera-user@incubator.apache.org Subject: Adding more elements within an extension Content-Type: multipart/alternative; boundary="------------020704030701070109020909" X-Virus-Checked: Checked by ClamAV on apache.org --------------020704030701070109020909 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I'm making use of extensions to put some of our own data into entries and feeds. What I'd ideally want to be able to do is something like: MyListElement list = new MyListElement( "listName" ); // extends Element list.addValue("one"); list.addValue("two"); entry.addExtension( list ); For this to generate: one two Looking at the code for FOMEntry, the above looks like a rather onerous task. Instead, I can use the existing code to do: Element e = entry.addExtension(MYLIST_QNAME); e.setAttributeValue("name", "listName"); And what I now want is: Element value1 = e.createElement(VALUE_QNAME); value1.setText("one"); This doesn't seem possible.. what should I do? Cheers, Neale --------------020704030701070109020909--