commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [betwixt] CDATA for just one property
Date Sun, 11 Apr 2004 11:22:13 GMT
the documentation is now on the site. see 
http://jakarta.apache.org/commons/betwixt/guide/output.html.

- robert

On 10 Apr 2004, at 10:55, robert burrell donkin wrote:

> hi brandon
>
> i have just finished off support for per property CDATA encoding in 
> the betwixt file. i haven't had time to write up documentation for it 
> yet, though. you'll need to build from CVS HEAD. the mechanism is 
> pretty easy: just add an option to the element you want to be CDATA. 
> i've attached an example betwixt file (from the unit tests).
>
> i hope to have the documentation written up a little later today.
>
> - robert
>
> <?xml version='1.0'?>
> <info primitiveTypes="attribute">
> 	<element name='greek-abc'>
> 		<element name='alpha' property='a'>
> 			<option>
> 				<name>org.apache.commons.betwixt.mixed-content-encoding</name>
> 				<value>CDATA</value>
> 			</option>
> 		</element>
> 		<element name='beta' property='b'>
> 			<option>
> 				<name>org.apache.commons.betwixt.mixed-content-encoding</name>
> 				<value>escaped</value>
> 			</option>
> 		</element>
> 		<element name='gamma' property='c'>
> 		</element>
> 	</element>
> </info>
>
> On 9 Apr 2004, at 22:20, Brandon Smith wrote:
>
>> I may be missing something with betwixt. I want only one property 
>> from a
>> bean to be surrounded by CDATA. The rest should use the default. What
>> exactly do I need to do?
>>
>> Brandon Smith
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message