Changeset 2201


Ignore:
Timestamp:
2001-03-20T12:37:42+12:00 (23 years ago)
Author:
daven
Message:

parsing instrumentation for structured documents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/GMLDocument.java

    r2184 r2201  
    6161    while ((element = iterator.next()) != null) {
    6262        // System.err.println("Got an element, getName() = " + element.getName() );
    63         if (element.getName() == "img") {
    64         //System.err.println("Got an image tag!");
    65         AttributeSet attributes = element.getAttributes();
     63        AttributeSet attributes = element.getAttributes();
     64       
     65        Object name = attributes.getAttribute(StyleConstants.NameAttribute);
     66        System.err.println(" " + name);
     67        if ( attributes.getAttribute(StyleConstants.NameAttribute) == HTML.Tag.IMG) {
     68        System.err.println("Got an image!");
    6669        System.err.println("Num of attributes = " + attributes.getAttributeCount());
    6770        //Enumeration attributeNames = attributes.getAttributeNames();
     
    7073            Object attributeValue = attributes.getAttribute(attributeName);
    7174            System.err.println("\t" + attributeName + " = " + attributeValue);
    72         }
    73        
    74         Object name = attributes.getAttribute(StyleConstants.NameAttribute);
    75         //System.err.println("name = " + name);
    76         }
     75        } // end for
     76        } // end if
    7777       
    78         }
     78     } // end while
    7979
    8080    /*
     
    106106    System.err.println("tag " + tag + " has block status " + tag.isBlock());
    107107    */
    108     }
     108    } //end getImageData
    109109
    110110
Note: See TracChangeset for help on using the changeset viewer.