You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/18 04:01:17 UTC
[jira] [Updated] (FLEX-17576) SimpleXMLEncoder.encodeValue() not
handle xml object correctly
[ https://issues.apache.org/jira/browse/FLEX-17576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-17576:
---------------------------------
Labels: easytest (was: )
> SimpleXMLEncoder.encodeValue() not handle xml object correctly
> --------------------------------------------------------------
>
> Key: FLEX-17576
> URL: https://issues.apache.org/jira/browse/FLEX-17576
> Project: Apache Flex
> Issue Type: Bug
> Components: RPC: General
> Affects Versions: Adobe Flex SDK 3.3 (Release)
> Environment: Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Priority: Minor
> Labels: easytest
>
> Steps to reproduce:
> 1. run test mxml, check the output
> ->the encoded value isn't expected.
> The test tries to encode an object:
> var obj:Object=new Object();
> obj.prop1=new XML("<test>this is a test</test>");
> obj.prop2={a:10};
> obj.prop3={b:(new Date(2009,01,12,0,0))};
> obj.prop4=[1,2,3,4];
> obj.prop5="";
> obj.prop6=null;
> encoder = new SimpleXMLEncoder(null);
> result = encoder.encodeValue(obj,new QName(new Namespace("xmlns", "http://www.namespace1.com"),"ns2"),parentNode1);
> trace(ObjectUtil.toString(result));
> the output is:
> <ns2><prop1><* /></prop1><prop2><a>10</a></prop2><prop3><b>2009-02-12T05:00:00.000Z</b></prop3><prop4><item>1</item><item>2</item><item>3</item><item>4</item></prop4><prop5></prop5></ns2>
> expect:
> for prop1, it has child, so I expect the child should be displayed.now it has value "*" instead which is unexpected.
>
> Workaround (if any):
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira