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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:52:04+00:00 2026-05-25T02:52:04+00:00

Hello I’m trying to get the values contained in the following XML <user> <id

  • 0

Hello I’m trying to get the values contained in the following XML

 <user>
    <id type="integer">122</id>
    <name>newuser</name>
    <email>newuser@user.com</email>
    <created_at type="datetime">2011-08-31T19:16:52Z</created_at>
    <updated_at type="datetime">2011-08-31T19:16:52Z</updated_at>
    <encrypted_password>8843d7f92416211de9ebb963ff4ce28125932878</encrypted_password>
    <salt>
    b700f04db5bf94929983540a8ceb74a68b4d6ebeb95de04bf9cb0b7e2ad69284
    </salt>
    <admin type="boolean">false</admin>
    <points type="integer">50</points>
    <address>fdjksljsl</address>
    <address2>fdjkljsflsjl</address2>
    <address3>fdjklls</address3>
    <county>dfjkjlsf</county>
    </user>

So currently I have

<s:HTTPService id="svcSessionCreate" url="/sessions" method="POST" 
                            resultFormat="e4x" result="checkLogin(e)"/>

private function checkLogin(e:ResultEvent):void{
var XMLName:String = XML(e.result).user.name;
var XMLEmail:String = XML(e.result).user.email; 
var XMLPoints:String = XML(e.result).user.points}

But in the debugger I can see that the vars XMLNAME< XMLEMAIL & XMLPoints are all being created but they are empty strings. How can I navigate to their values?

Cheers for you help.

L

  • 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-25T02:52:05+00:00Added an answer on May 25, 2026 at 2:52 am

    XML variable itself stands for root node. So you should omit user the following way:

    private function checkLogin(e:ResultEvent):void{
    var XMLName:String = XML(e.result).name;
    var XMLEmail:String = XML(e.result).email; 
    var XMLPoints:String = XML(e.result).points}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hello friends i am trying to get a list of user id and want
Hello i been trying to get a tokenizer to work using the boost library
Hello I am trying to create a stacked barplot using the following code: test
Hello all in my iphone application after sending login xml request am getting following
Hello I'm trying to write some values to my SQL through the C# WinForm
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello again ladies and gents! OK, following on from my other question on ASP.NET
Hello I am compiling a program with make but I get the error of
Hello everyone i am trying to format the input number range with php number_format
Hello Guys I am trying to figure out why i am gettings this error

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.