public static List<String> GetNamesOfGalleries() {
        List<String> names = new ArrayList<String>();
        NodeList nList = getNodeList();
        for (int i = 0; i < nList.getLength(); i++) {
            Node nNode = nList.item(i);
            if (nNode.getNodeType() == Node.ELEMENT_NODE) {
                Element eElement = (Element) nNode;
                names.add(eElement.getAttribute("name"));
            }
        }
        return names;
    }