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:
test/src/xmlobject/detailed/SubstGroupTests.java
it uses schema types from
test/cases/xbean/xmlobject/substgroup2/xsd
Let us know what you think of the new API,
-Jacobd

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

	Hello,
	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"/>
	</setTemplateValue>
	
	and new one
	
	<newTemplateValue>
	   <randonFloat min="1" max="6"/>
	  <required/>
	</newTemplateValue
	
	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"/>
	  <required/>
	</setTemplateValue>
	
	
	Thanks so much
	
	Jakub
	
	
	
	
	
	
	---------------------------------------------------------------------
	To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
	For additional commands, e-mail: user-help@xmlbeans.apache.org
	
	

Mime
View raw message