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