You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Brandon Smith <bi...@hotmail.com> on 2004/04/09 23:20:10 UTC

[betwixt] CDATA for just one property

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


Re: [betwixt] CDATA for just one property

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
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


Re: [betwixt] CDATA for just one property

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
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