<util:list> tag using is not possible while serializing.

20 views
Skip to first unread message

Jyoti Balabantaray

unread,
Aug 27, 2013, 8:12:07 AM8/27/13
to fle...@googlegroups.com
Hi,
I am trying to generating XML using flexXB with alias name util:list. And got the below error while serialization.

TypeError: Error #1117: Invalid XML name: util:list.
at com.googlecode.flexxb.xml.serializer::XmlClassSerializer/serialize()

Kindly suggest. Is there a way for the solution.?

Thanks,
Jyoti Balabantaray

Alexutz

unread,
Aug 27, 2013, 8:31:43 AM8/27/13
to fle...@googlegroups.com
You need to declare the namespace and reference it into the member:
 
[Namespace(prefix="mgm", uri="http://www.mgm.com/app")]
[XmlClass(alias="Response")]
public class MGM {

public function MGM() {
}

[XmlElement(alias="id", namespace="mgm")]
public var id:String;

[XmlArray(alias="fields", namespace = "")]
public var fields:ArrayCollection;
}

Alexutz

unread,
Aug 27, 2013, 8:32:42 AM8/27/13
to fle...@googlegroups.com
That's actually an idea for an improvement, adding the ability to set prefix right in the alias.

On Tuesday, August 27, 2013 3:12:07 PM UTC+3, Jyoti Balabantaray wrote:
Reply all
Reply to author
Forward
0 new messages