peaston 0 Newbie Poster

I need to write/find a jsp script that would go to the following url and retrive the xml it generates and display an images for whatever the value is.

url:
http://www.dhs.gov/dhspublic/getAdvisoryCondition

what it returns:
<?xml version="1.0" encoding="UTF-8"?>
<THREAT_ADVISORY CONDITION="ELEVATED" />

What I would like is a way to read the value of "THREAT_ADVISORY CONDITION" and compare it with an if or switch statement the display the correct image code.

attached is my rough start for the code
thanks in advance for any help.
Pete

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.