How to get all the child elements attribute in an array from xdocument : I have xml in the following format
    
    <ABC Attr1="1" Attr2="2">
       <PQR Attr1="1" Attr2="2" Attr="3">
       <XYZ Attr1="1" Attr2="2"></XYZ>
       <HIJ Attr1="1" Attr2="2"></HIJ>
       </PQR>
    </ABC>
    Now i want to get all the attributes of PQR,XY and HIJ in a single array.
    Can anyone guide me how to get that?