public String getTagValue ( String tagName ) { Tag [ ] tags = getTagMap ( ) . get ( tagName ) ; if ( tags == null || tags . length == 0 ) { return null ; } return tags [ tags . length - 1 ] . getText ( ) ; }
Gets the text value of the first tag in doc that matches tagName