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 8970867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:48:47+00:00 2026-06-15T17:48:47+00:00

I am new to flex development. I am trying to develop a web based

  • 0

I am new to flex development. I am trying to develop a web based application. somehow I feel comfortable. I have some queries related to xml documents.

In my webservice I perform some database operation and return some xml data in XmlDocument Object format.

I tried to parse it using below function

    public  function objectToXML1(obj:Object):XML {
                var qName:QName = new QName("DATA");
                var xmlDocument:XMLDocument = new XMLDocument();
                var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument);
                var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument);
                var xml:XML = new XML(xmlDocument.toString());
                return xml;
            }

but I don’t know how to pull data from this XML

XML FORMAT

<REQUEST>
<STATUS>SUCCESS</STATUS>
<MESSAGE>BP Retrive </MESSAGE>
<DATA>
<BOM>
<BO>
<BusinessPartners>
<row>
<CardCode/>
<CardName/>
<Phone1/>
<Phone2/>
<Cellular/>
<EmailAddress/>
</row>
</BusinessPartners>
</BO>
</BOM>
</DATA>
</REQUEST>
  • 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-06-15T17:48:48+00:00Added an answer on June 15, 2026 at 5:48 pm

    If you have a predefined structure of the XML, you could use FlexXB to create an ActionScript Object of the XML. It is pretty easy, you create an ActionScript Object which looks exactly like the XML (that means it need to have the same properties) and you annotate these properties. So FlexXB will read the XML and create an ActionScript Object form it.

    If you don’t want to use the framework, you can do it by hand too. To read attributes, use xmlElement.@attributeName for getting the name of an object use e.g. xmlElement.name().localName. There are some functions, but since the autocompletion doesn’t work for XML elements it is a little hard to find the right functions. Here is an article by Adobe which explains how to work with XML. Basicall you can just use the node names as property names. In your case you could write xmlElement.Phone1 and so on.

    Hope it helps 🙂

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

Sidebar

Related Questions

I´m new in Flex. I'm trying to develop a Web Application integrated with Facebook.
i am very new to iphone development. however i have some experience in flex(flash)
I'm kinda new to Flex. I have trying to send Hash from Ruby on
I am trying to develop one simple application using Java, Flex and Blazeds. I
I am new to flex development. In my proj, I have created a panel
I am new to flex framework. I have created an application using flex framework
I would like to learn Adobe Flex mobile development. I have created a new
I am new Web App development using Flex Builder 3 and currently I am
I am new to flex development. Have my share of experience in asp.net though.
i am new developer to work on adobe flex mobile development.I have try for

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.