Package org.htmlparser.tags

Examples of org.htmlparser.tags.MetaTag


        + "// if this fails, output a 'hello' " + "if (true) " + "{ " + "//something good... " + "} "
        + "</script>" + "<body>" + "</body>" + "</html>");
    parser.registerScanners();
    parseAndAssertNodeCount(10);
    assertType("fourth node", MetaTag.class, node[4]);
    MetaTag metaTag = (MetaTag) node[4];

    assertStringEquals("content", "text/html; charset=iso-8859-1", metaTag.getAttribute("CONTENT"));
  }
View Full Code Here


    Hashtable table = tag.getAttributes();
    String metaTagName = (String) table.get("NAME");
    String metaTagContents = (String) table.get("CONTENT");
    String httpEquiv = (String) table.get("HTTP-EQUIV");

    return new MetaTag(tagData, httpEquiv, metaTagName, metaTagContents);
  }
View Full Code Here

TOP

Related Classes of org.htmlparser.tags.MetaTag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.