If Not rsChildren.EOF Then Response.Write "<UL>" & Chr(13) & Chr(10) While Not rsChildren.EOF If rsChildren("RESOURCE_ISCOLLECTION") Then recChildNode.Open rsChildren TraverseTree recChildNode recChildNode.Close Else Response.Write "<LI>" & rsChildren("RESOURCE_PARSENAME") & Chr(13) & Chr(10) End If rsChildren.MoveNext Wend Response.Write "</UL>" & Chr(13) & Chr(10) End If rsChildren.Close Set rsChildren = Nothing Set recChildNode = Nothing End Sub %>