It's easy enough to find the first <name> element that isn't equal to fxp0 or 0, but presumably those are not the only things that might occur before your first IP address. You need to specify how you are going to distinguish an element containing an IP address from all the other things that might be encountered; we can't do that from one example.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference