create xml from object
Posted
by
Gannesh
on Stack Overflow
See other posts from Stack Overflow
or by Gannesh
Published on 2011-07-01T07:13:36Z
Indexed on
2011/07/01
8:22 UTC
Read the original article
Hit count: 488
Basically i want to create XMLDesigner kind of thing in Flex, using which user can add/edit components and properties of view/dashboard. i am storing view structure in a xml file. i parsed that file at runtime and display view. How to convert an object (having properties and sub-objects) to xml node (having attributes and elements) and add that xml to the existing xml file. so that next time when i parsed xml file i'll get that new component in my view/dashboard.
for e.g, object structure of component in xml file :
<view id="productView" label="Products">
<panel id="chartPanel" type="CHART" ChartType="Pie2D" title="Productwise Sales" x="215" y="80" width="425" height="240" showValues="0" >
</panel>
</view>
Thanks in Advance.
© Stack Overflow or respective owner