XML root node name

64 views
Skip to first unread message

Kiran Kumar Vasireddy

unread,
Dec 30, 2009, 5:51:04 PM12/30/09
to Flex India Community
Dear All,

Is there any way to get the root node name in XML? I mean for example in the below code I want "Company"


<Company name="GM" count="100">
   <Model name="Chevi" Count="200">
  ......
</Company>

Thanks for your help
Regards
Kiran

AsHu

unread,
Jan 28, 2010, 5:35:55 PM1/28/10
to flex_...@googlegroups.com
Hi Kiran,


use the below line of code inside the ResultMethod, You will get the ROOT tag name::




Thanks & Regards
Ashutosh Pandey
+91 9582734522

"Research is what I'm doing when I don't know what I'm doing."




--

You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

arvind hr

unread,
Jan 29, 2010, 1:26:52 AM1/29/10
to flex_...@googlegroups.com
Hi Kiran,
 
You can use xml.name().localName
 
Thanks
Arvind

Reply all
Reply to author
Forward
0 new messages