コード例 #1
0
 private static float rating(final Element entry) {
   // Note: Not all videos have a rating.
   return NodeUtils.getFloatAttribute(entry, "gd:rating", "average");
 }
コード例 #2
0
 private static String author(final Element entry) {
   final NodeList authors = entry.getElementsByTagName("author");
   final Element author = (Element) authors.item(0);
   return NodeUtils.createStringValue(author, "name");
 }