Here is a tool for WHOIS lookups that I use: http://apps.db.ripe.net/search/lookup.html
It can present information in an XML file, like this: http://apps.db.ripe.net/whois/lookup/ripe/inetnum/192.36.171.155.xml
Let's say I wanted to read the XML file by using PHP and present the netname and descr fields in an HTML document, how would I do that?