IntroductionThere are some limitations when it comes to serializing to XML in fxstruts. AMF does not suffer from these limitations. Details- ByteArray is not supported currently.
- Loops in objects (reference to itself) will result in a stack overflow error.
- XML generated may not be considered valid by traditional XML parsers as it is intended to be decoded by SimpleXMLDecoder (HTTPService with resultFormat set to Object). Specifically, there may not be a root tag encompassing all content especially when it comes to Arrays:
<?xml version="1.0" encoding="utf-8"?>
<dumbData><yo>0</yo><dummy>Yo0</dummy></dumbData>
<dumbData><yo>1</yo><dummy>Yo1</dummy></dumbData> Though this is traditionally considered invalid XML, Flex will parse this into an array dumbData where each element has fields yo and dummy which is exactly what we want. This deviation from the norm is to keep SimpleXMLDecoder happy and more in line with the user's expectation.
|