Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6090465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:13:01+00:00 2026-05-23T12:13:01+00:00

Basically i want to create XMLDesigner kind of thing in Flex, using which user

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:13:02+00:00Added an answer on May 23, 2026 at 12:13 pm

    Use an XML (de)serialization library.

    There are many out there but one thing that I have used and found very stable is FlexxB. It has got a plethora of functions and I swear by it!

    Flexxb is annotation based and very easy to use once you get the hang of it.

    Here is a sample copied from the main web site.

            [XmlClass(alias="MOck2Replacement", idField="id")]
            public class Mock3
            {
                    [XmlAttribute]
                    public var id : Number = 3;
                    [XmlAttribute]
                    public var attribute : Boolean;
                    [XmlElement(alias="objectVersion")]
                    public var version : Number;
    
                    public function Mock3()
                    {
                            super();
                    }
            }
    

    You decorate each of your variables with an annotation and tell what kind of XML type would it be.

    And you create the object

    var target : Mock3 = new Mock3();
    target.attribute = true;
    target.id = 5;
    target.version = 33;
    

    And you do

    FlexXBEngine.instance.serialize(target)

    And the result would be

    <MOck2Replacement attribute="true" id="5">
      <objectVersion>
        33
      </objectVersion>
    </MOck2Replacement>
    

    And the other AWESOME thing about is that you don’t have to have the source of an object to decorate it.

    There is an API that handle that. Using this AP, I successfully de(serialized) SolidColor and LinearGradient where I did not have the source to decorate it.

    Checkout the General Description and Samples. And it’s a one SWC install 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to create a list of strings using some recursion. Basically i want
Basically I want to create an application on Android device which able to send
I want to create an xml editor UI in flex.Basically I want to present
Basically I want to create a user control in code behind, DataBind() it and
I basically want to create an Eclipse workspace that can be accessed between accounts
I'm using resque-status for Resque/Redis... https://github.com/quirkey/resque-status I basically want to create a new Sinatra
Basically I want to create one large object of many object in JavaScript. Something
Basically i want to be able to dynamically create a temp table based off
I want to create own filetype to save objects in my app. Basically, I
How to create imaged scrollbars, for example: http://www.openstudio.fr/jquery/index.htm Basically, I want to create my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.