Return-Path: Delivered-To: apmail-poi-dev-archive@www.apache.org Received: (qmail 23862 invoked from network); 10 Apr 2008 19:38:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2008 19:38:30 -0000 Received: (qmail 47534 invoked by uid 500); 10 Apr 2008 19:38:30 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 47398 invoked by uid 500); 10 Apr 2008 19:38:30 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 47378 invoked by uid 99); 10 Apr 2008 19:38:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 12:38:30 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.237.132.142] (HELO wp135.webpack.hosteurope.de) (80.237.132.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 19:37:38 +0000 Received: from dslb-088-074-175-247.pools.arcor-ip.net ([88.74.175.247] helo=srv.lpz.q-17.de.local); authenticated by wp135.webpack.hosteurope.de running ExIM using esmtpa id 1Jk2at-0001xv-8k; Thu, 10 Apr 2008 21:37:59 +0200 Received: (qmail 5777 invoked by uid 98); 10 Apr 2008 19:37:48 -0000 Received: from 192.168.40.21 by srv.lpz.q-17.de.local (envelope-from , uid 89) with qmail-scanner-2.01 ( Clear:RC:1(192.168.40.21):. Processed in 0.035122 secs); 10 Apr 2008 19:37:48 -0000 Received: from unknown (HELO ?192.168.40.21?) (192.168.40.21) by srvfb.lpz.q-17.de.local with SMTP; 10 Apr 2008 19:37:48 -0000 Message-ID: <47FE6C8E.7030501@admadic.de> Date: Thu, 10 Apr 2008 21:37:50 +0200 From: Rainer Schwarze User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: POI Developers List Subject: Re: ooxml branch and docx References: <142396750804090502l7d65ac72mbca4f51f6617d2b0@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;rsc@admadic.de;1207856299;451b1cc2; X-Virus-Checked: Checked by ClamAV on apache.org Nick Burch wrote: > On Wed, 9 Apr 2008, Jason Harrop wrote: >> I was looking today at my generated classes for CT_RPr and CT_ParaRPr >> - the content model for an rPr element inside a pPr is essentially the >> same as for an rPr in a run element, except that it is top and tailed >> with some change tracking stuff: > > I noticed this too. It's rather pesky. Do you know if the schema instructs > one to extend the other, or are they independently defined with repeating > contents? (We'll want to know the answer before we go and ask xmlbeans > about supporting the java class hierachy) From what I can see with my limited schema knowledge, CT_RPr and CT_ParaRPr both (among one or two others as well) refer to EG_RPrBase within their section. So it looks to me as if it is common contents. >> I did notice something about some of the other classes generated by >> XMLBean which i thought i should raise on this list. >> >> org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP and CTR. - >> rather than a single list for the content (EG_PContent and >> EG_RunInnerContent), there is a list or array per element. > > Yeah, this is a bit pesky. Might be worth a post to the xmlbeans list, to > ask if it's possible to get the list of all children My current solution is a helper class which uses XmlCursor to build the lists of all children (there's a sample named "Order Matters" (if I remember well) at the XmlBeans site - it is similar to that one). This works for now in my case. Best wishes, Rainer -- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org