return false;
////////// Parse the version number ///////////////////////////////////
final Element number = (Element)XMLUtil.getFirstChildOf(
version, new ElementFilter( "number" )
);
if ( number == null )
return false;
m_updateVersion = XMLUtil.getTextOfFirstTextChildOf( number );
////////// Parse the revision number //////////////////////////////////
final Element revision = (Element)XMLUtil.getFirstChildOf(
version, new ElementFilter( "revision" )
);
if ( revision == null )
return false;
final String updateRevision =
XMLUtil.getTextOfFirstTextChildOf( revision );
try {
m_updateRevision = Integer.parseInt( updateRevision );
}
catch ( NumberFormatException e ) {
return false;
}
////////// Parse the URL //////////////////////////////////////////////
final Element url = (Element)XMLUtil.getFirstChildOf(
version, new ElementFilter( "url" )
);
if ( url == null )
return false;
m_updateURL = XMLUtil.getTextOfFirstTextChildOf( url );