views:

62

answers:

1

This is xml code and I want to write code with javascript using DOM to get the father, mother, daughter and son names ------->(ali,mona,ghada and mohamed)

Can any one help me?

<family>
    <grandfather>Ibrahim
            <father job="Engineer">Ali
                 <mother>mona</mother>
                 <daughter age="23" job="ITI student">ghada</daughter>
                 <son age="21" sport="football">mohamed</son>
            </father>
         <uncle>Alaa</uncle>
         <uncle>reda</uncle>
         <aunt sons="2">layla</aunt>
    </grandfather>
</family>
+1  A: 

Have a look at this and this.

er4z0r
I think Larry Page and Sergey Brin probably didn't like homework as well so they invented a handy tool for solving all kinds of homework. *scnr*
er4z0r