title: Get attributes in xml file using vbscript
body: <p>I am traversing through xml using recursion approach and want to make sure if particular node have any attributes. here is what I have tried</p>
  
  <p>First method: Get list of all attributes using foreach loop, but problem with this approach is if any node is not having any attribute it throws error</p>
  
  <p>Second approach: finding the attribute by attribute name passed as parameter and verify if it returns null, but in this case I need to have all the attribute names handy which never let me go ahead with recursive approach.</p>