xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Danner" <jac...@bea.com>
Subject RE: how to exchange XML content
Date Mon, 14 Feb 2005 18:25:38 GMT
You should give substitution groups. There's a new API in v2 specifically for substitution,
give it a try. I contributed some tests for the API, you can see the code for example usages.
The test src lives off trunk at:
it uses schema types from
Let us know what you think of the new API,

	-----Original Message----- 
	From: Jakub Kahovec [mailto:j.kahovec@imperial.ac.uk] 
	Sent: Mon 2/14/2005 8:26 AM 
	To: user@xmlbeans.apache.org 
	Subject: how to exchange XML content

	i'm using XmlBeans v.2. i'd like to ask if there does exist some easy
	way how to exchange the xml content (without root) of some element for
	another one.
	For example i've got the following element
	<setTemplateValue id="1" >
	  <randonInteger min="2" max="3"/>
	and new one
	   <randonFloat min="1" max="6"/>
	and I'd like to exchange the content of first element for second one, so
	that first element look like
	<setTemplateValue id="1" >
	   <randonFloat min="1" max="6"/>
	Thanks so much
	To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
	For additional commands, e-mail: user-help@xmlbeans.apache.org

View raw message