def iterateDBPages(dbid)
        listDBPages(dbid){|page|
             if page.is_a?( REXML::Element) and page.name == "page" 
                @pageid = page.attributes["id"]
                @pagetype = page.attributes["type"]
                @pagename = page.text if page.has_text?
                @page = { "name" => @pagename, "id" => @pageid, "type" => @pagetype }
                yield @page
             end
        }
    end
def iterateDBPages(dbid)
        listDBPages(dbid){|page|
             if page.is_a?( REXML::Element) and page.name == "page" 
                @pageid = page.attributes["id"]
                @pagetype = page.attributes["type"]
                @pagename = page.text if page.has_text?
                @page = { "name" => @pagename, "id" => @pageid, "type" => @pagetype }
                yield @page
             end
        }
    end
Loop through the list of Pages for an application