Menu

How to use HTMLParser to lowercase tags?

Help
2005-01-11
2013-04-27
  • mikeliu1976

    mikeliu1976 - 2005-01-11

    regards:

    How to use HTMLParser to lowercase some specific tags?
    ^_^

    thank you
    May god be with you

     
    • Derrick Oswald

      Derrick Oswald - 2005-01-11

      The name is just the first attribute:

              Vector attributes;
              Attribute attribute;

              attributes = tag.getAttributesEx ();

       
    • Derrick Oswald

      Derrick Oswald - 2005-01-11

      The name is just the first attribute:

      Vector attributes;
      Attribute attribute;

      attributes = tag.getAttributesEx ();
      attribute = (Attribute)attributes.elementAt (0);
      attribute.setName (attribute.getName ().toLowerCase ());

      How you find the tags is up to you, either a filter or a visitor or custom tags.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.