Return-Path: Delivered-To: apmail-xml-xmlbeans-user-archive@www.apache.org Received: (qmail 947 invoked from network); 10 Nov 2003 17:11:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Nov 2003 17:11:19 -0000 Received: (qmail 40257 invoked by uid 500); 10 Nov 2003 17:11:13 -0000 Delivered-To: apmail-xml-xmlbeans-user-archive@xml.apache.org Received: (qmail 40135 invoked by uid 500); 10 Nov 2003 17:11:12 -0000 Mailing-List: contact xmlbeans-user-help@xml.apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: xmlbeans-user@xml.apache.org Delivered-To: mailing list xmlbeans-user@xml.apache.org Received: (qmail 40116 invoked from network); 10 Nov 2003 17:11:11 -0000 Message-ID: <02a901c3a7ad$b85cdbe0$0100a8c0@parsecc3f76316> From: "Javier Ramos" To: References: <200311101624.hAAGOfo1015197@whale.cs.indiana.edu> Subject: Re: how to deal with extensible schemas Date: Mon, 10 Nov 2003 18:11:45 +0100 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 Thanks a lot, Yogesh, I was already playing with this. Actually, I was not sure about calling cursorTo.toNextToken() after creating cursorTo. I will try with your code. Thanks again Javier ----- Original Message ----- From: "Yogesh L. Simmhan" To: Sent: Monday, November 10, 2003 5:24 PM Subject: RE: how to deal with extensible schemas > You can create an XmlCursor for the XmlObject you wish to insert and to the > Container and use the copyXml method in the cursor. > > e.g. to insert 'child' XmlObject in container, > > XmlCursor cursorTo = container.newCursor(); > cursorTo.toNextToken(); > > XmlCursor cursorFrom = child.newCursor(); > cursorFrom.copyXml(cursorTo); > > cursorFrom.dispose(); > cursorTo.dispose(); > > --Yogesh > > ________________________________________ > From: Javier Ramos [mailto:ramos@parsec.es] > Sent: Monday, November 10, 2003 5:50 AM > To: xmlbeans-user@xml.apache.org > Subject: how to deal with extensible schemas > > Hi, > > I am trying to figure out how to deal with extensible schemas. What want is > to have the possibility to use xs:any element to declare that any xml content > can be hooked under a given element. If I create a schema like: > > > > > > > > when I use scomp to generate java code and classes I obtain a dummy class > for the element type 'container' and can find no way to hook any XMLObject > inside it. > > In XMLCursor I can see there are methods to insert single elements or > attributes, but no way to insert a whole XMLObject contents under a given cursor > position. > In XMLObject I cannot find nothing of help. > > Does anybody have any ideas? > > Javier > > > > > - --------------------------------------------------------------------- > To unsubscribe, e-mail: xmlbeans-user-unsubscribe@xml.apache.org > For additional commands, e-mail: xmlbeans-user-help@xml.apache.org > Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/ > - --------------------------------------------------------------------- To unsubscribe, e-mail: xmlbeans-user-unsubscribe@xml.apache.org For additional commands, e-mail: xmlbeans-user-help@xml.apache.org Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/