Use the introspection API to loop over the variables in an instance of your
TestObject.
http://livedocs.adobe.com/flex/201/html/usingas_053_9.html#225061
On 5/27/07, Marvin Froeder <[EMAIL PROTECTED]> wrote:
Hi folks...
Anyone knows if is possible to do something like the XStream on flex?
That means convert an object directly into a XML, without manual work.
Class:
package test {
public class TestObject {
public var a: String = "a paramater";
public var b: String = "b parameter";
}
}
When I convert to XML result me something like:
<test.TestObject>
<a>a paramater</a>
<b>b parameter</b>
</test.TestObject>
The problem is this XStream lib is for Java, not for flex.
Any light?
VELO