Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need a java function

Status
Not open for further replies.

rookie

Programmer
Oct 27, 1998
14
US
I need a java function that accepts a web URL (as string), and returns one of the following codes (also a string) (after receiving/parseing the reponse from the server):
00 - Received an XML page
01 - No Response (timed out or server down)
02 - Invalid URL (a file not found)
03 - Received a NON-XML Page

One can determine whether or not it's an xml page by looking at the first few characters &quot;<?xml_version&quot;. Java is not my cup of tea (coffee?). Is this difficult?
Is anyone up for it?
Curtis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top