I'm not sure I fully understand what you're looking to do. If you're traversing the DOM array, can you not just do something like this?
var myArray=new Array();
[INDENT]//for each element in the DOM
i'm not sure what you mean by "and their values." Are you looking for the style, etc info in the tag? Or for innerHTML?