i followed the same way it is working with other element in the form
<ele>...</ele>
bt not working with <ele/> type element

On Mar 4, 10:56 am, kalpesh mahida <[email protected]> wrote:
> Hi,
>
> I think first you should load XML data in one xmlData variable like
>
> var xmlData:XML = new XML(loader.data);
>
> and use xmlData variable to get the attribute value
>
> Regards,
> Kalpesh Mahida
>
> On Wed, Mar 4, 2009 at 11:09 AM, Akhil Agrawal <[email protected]>wrote:
>
>
>
> > Hi,
> > I am trying to retrieve the attribute of an element from an xml file.
> > element is like this...
> >  <database host="akhil" id="se"
> > name="0ad953ea7bbb781b11d1d69fc9501001"/>
> > using this code
> > var data:XML=element.child("database ")[0];
> > where element is an xml type variable parent of database node
> > bt it is giving null error. how to fix it
> > thanx
>
> > regards
> > akhil agrawal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to