tags:

views:

24

answers:

1

I know the class SimpleXMLEncoder can encode all properties of an Object in XML. I only want some properties encoded. How can I specify which properties to encode?

+1  A: 

Not 100% sure, but try adding the [Transient] metadata tag to any properties you do not want encoded.

Ex:

[Transient]
public var doNotEncodeThis:String;
maclema
Please note, if you are using BlazeDS this will also prevent that property from being sent back to the server.
maclema
That worked, thanks
Phil C