Update XML object

Its not easy to update XML object with Flex 3.0 and theres a work around… Lets walk with the example…

Lets assume, you have xml object <root><child  name=”c1″/></root> and update to <root><child name=”c1″>am child</child></root>
 var xmlObj:XML = new XML (<root><child name=”c1″/></root>);
 delete xmlObj.child[0];
 param.appendChild( new XML(<child name=”c1″> am child</child>) );


Attribute
 xmlObj.child[0].@name = “am 1”;

Its not easy to update XML object with Flex 3.0 and theres a work around… Lets walk with the example… Lets assume, you have xml object <root><child  name=”c1″/></root> and update to <root><child name=”c1″>am child</child></root>  var xmlObj:XML = new XML (<root><child name=”c1″/></root>);  delete xmlObj.child[0];  param.appendChild( new XML(<child name=”c1″> am child</child>) ); Attribute  xmlObj.child[0].@name = “am 1”;

Leave a Reply

Your email address will not be published. Required fields are marked *

Update XML object

Its not easy to update XML object with Flex 3.0 and theres a work around… Lets walk with the example…

Lets assume, you have xml object <root><child  name=”c1″/></root> and update to <root><child name=”c1″>am child</child></root>
 var xmlObj:XML = new XML (<root><child name=”c1″/></root>);
 delete xmlObj.child[0];
 param.appendChild( new XML(<child name=”c1″> am child</child>) );


Attribute
 xmlObj.child[0].@name = “am 1”;

Its not easy to update XML object with Flex 3.0 and theres a work around… Lets walk with the example… Lets assume, you have xml object <root><child  name=”c1″/></root> and update to <root><child name=”c1″>am child</child></root>  var xmlObj:XML = new XML (<root><child name=”c1″/></root>);  delete xmlObj.child[0];  param.appendChild( new XML(<child name=”c1″> am child</child>) ); Attribute  xmlObj.child[0].@name = “am 1”;

Leave a Reply

Your email address will not be published. Required fields are marked *