Changeset 26537 for main


Ignore:
Timestamp:
2012-11-28T12:35:00+13:00 (11 years ago)
Author:
sjm84
Message:

Removed some obsolete functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSXML.java

    r26055 r26537  
    14881488        return groups;
    14891489    }
    1490 
    1491     public static NodeList getHTMLStructureElements(Document doc)
    1492     {
    1493         MyNodeList elems = new MyNodeList();
    1494 
    1495         String[] structureTagNames = new String[] { "html", "div", "td", "li" };
    1496 
    1497         for (String tagName : structureTagNames)
    1498         {
    1499             NodeList htmlElems = doc.getElementsByTagName(tagName);
    1500             elems.addNodeList(htmlElems);
    1501         }
    1502 
    1503         return elems;
    1504     }
    1505 
    1506     public static void addDebugSpanTags(Document doc)
    1507     {
    1508         NodeList allElements = doc.getElementsByTagName("*");
    1509 
    1510         for (int i = 0; i < allElements.getLength(); i++)
    1511         {
    1512             Element current = (Element) allElements.item(i);
    1513             String debugString = null;
    1514             if ((debugString = (String) current.getUserData("GSDEBUGFILENAME")) != null)
    1515             {
    1516                 System.err.println("DEBUGSTRING = " + debugString);
    1517 
    1518                 Element xmlSpan = doc.createElement("span");
    1519                 xmlSpan.setAttribute("style", "display:none;");
    1520                 xmlSpan.setAttribute("class", "debugSpan");
    1521                 xmlSpan.appendChild(doc.createTextNode("\"filename\":\"" + debugString + "\", \"xml\":\"" + GSXML.xmlNodeToString((Element) current.getUserData("GSDEBUGXML")) + "\""));
    1522 
    1523                 if (current.hasChildNodes())
    1524                 {
    1525                     current.insertBefore(xmlSpan, current.getFirstChild());
    1526                 }
    1527                 else
    1528                 {
    1529                     current.appendChild(xmlSpan);
    1530                 }
    1531             }
    1532         }
    1533     }
    15341490}
Note: See TracChangeset for help on using the changeset viewer.