I think you'll want to do something like this:
if( Int32.Parse( thisXDocument.DOM.selectSingleNode( "_XPATH_" ).text ) > 10 )
{
//field is greater than 10
}
http://support.microsoft.com/?kbid=835454
---------------
Matt Faus
InfoPath Dev Texas
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge