Changeset 1103


Ignore:
Timestamp:
Jun 24, 2011, 7:24:37 PM (6 years ago)
Author:
stefan
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/my/XML/XMLParser.java

    r744 r1103  
    5252    XMLDocument document = new XMLDocument();
    5353    /* enthält der String eine XML-Type-Definition? */
    54     Vector childs = raw_document.getChildElements();
     54    Vector<XMLElement> childs = raw_document.getChildElements();
    5555    for (int child_nr = 0; child_nr < childs.size(); child_nr++) {
    56       XMLElement element = (XMLElement) childs.elementAt(child_nr);
     56      XMLElement element = childs.elementAt(child_nr);
    5757      String name = element.getName();
    5858
     
    8686    int tag_ende = -1;
    8787    XMLElement aParent;
    88     Vector theParents = new Vector();
     88    Vector<XMLElement> theParents = new Vector<XMLElement>();
    8989
    9090    aParent = parent;
     
    147147        if (theParents.size() > 1) {
    148148          theParents.removeElementAt(theParents.size() - 1);
    149           aParent = (XMLElement) theParents.elementAt(theParents.size() - 1);
     149          aParent = theParents.elementAt(theParents.size() - 1);
    150150        }
    151151        continue;
     
    227227      /* das Attribut/Wert Paar dem Element hinzufügen */
    228228      element.setAttribute(attribute_name, attribute_value);
    229       if (element.getName().equals(new String("queryresults"))) {
     229      if (element.getName().equals("queryresults")) {
    230230        element.setAttributeOrdered(attribute_name);
    231231      }
Note: See TracChangeset for help on using the changeset viewer.