code: private long getLongFromDom( Document dom, String tag )
      {
          return Long.parseLong( dom.getElementsByTagName( tag ).item( 0 ).getTextContent() );
      }
docs: Retrieves a long value according to a Dom and a tag
  
  @param dom
  @param tag
  @return long value