I am trying to use a For Next loop to dimension an array by using the length property as the array integer ( array(objXML.legnth)). This is giving me an error saying "expected integer constant". I tried Cint, but that did not fix the error. I eventually want to use this array to hold document fragments of the original XML. Is this possible? I'm getting errors that make it seem like this is not possible with the DOM. I would aprreciate any help I can get. Thanks.