header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Joseph
Points:0
Posts:0

8/8/2010 11:06:22 PM

Title: Get attributes of XML


I have an XML like the following.

Alerts
<alerts>
<alert id="123" issued="2010-03-01
21:08:44.117" expires="2010-10-10">
<msg>This is a message.</msg>
</alert>
</alerts>

I want to get the atttributes of the alert tag.
How to get it please help.



1
Ronald
Points: 430
Posts:0
8/9/2010 2:21:06 AM



use attributes property to acess the xml attributes and pass the position , I passed 0 to access the first attribute id. xml1 is your xml.

xml1.alert.attributes()[0]


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+0 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions