Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Updating terror alert status

Updating terror alert status

Scheduled Pinned Locked Moved The Lounge
xml
13 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S srt7

    Is it possible to get an XML feed etc. from the Whitehouse page showing the terror alert status. I work for a university and we were thinking of putting it on our page ONLY if it can be automatically updated. Regards, Tiruvan

    H Offline
    H Offline
    Heath Stewart
    wrote on last edited by
    #4

    Found this doing a quick search on google: http://dotnetjunkies.com/WebLog/bsblog/archive/2004/01/30/6368.aspx[^]. It's just a simple XML document (one element; root element with one attribute) that you could easily parse and use however you want. The link above discusses one alternative.

    Microsoft MVP, Visual C# My Articles

    P 1 Reply Last reply
    0
    • S srt7

      Is it possible to get an XML feed etc. from the Whitehouse page showing the terror alert status. I work for a university and we were thinking of putting it on our page ONLY if it can be automatically updated. Regards, Tiruvan

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #5

      Heck, I can't even find the Terror Alert Status page on the site with my eyes, never mind an XML feed. Wherever it is, why not do a web-scrape if they don't supply XML? regards, Paul Watson Bluegrass South Africa Christopher Duncan quoted: "...that would require my explaining Einstein's Fear of Relatives" Crikey! ain't life grand? Einstein says...

      H 1 Reply Last reply
      0
      • H Heath Stewart

        Found this doing a quick search on google: http://dotnetjunkies.com/WebLog/bsblog/archive/2004/01/30/6368.aspx[^]. It's just a simple XML document (one element; root element with one attribute) that you could easily parse and use however you want. The link above discusses one alternative.

        Microsoft MVP, Visual C# My Articles

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #6

        Go XML ;)

        public enum DHSAdvisoryLevel
        {
        SEVERE,
        HIGH,
        ELEVATED,
        GUARDED,
        LOW,
        UNKNOWN
        }

        I would be more worried if the value was set to UNKNOWN than SEVER. regards, Paul Watson Bluegrass South Africa Christopher Duncan quoted: "...that would require my explaining Einstein's Fear of Relatives" Crikey! ain't life grand? Einstein says...

        D J 2 Replies Last reply
        0
        • J Jim A Johnson

          Does anyone still pay attention to that?

          D Offline
          D Offline
          Daniel Turini
          wrote on last edited by
          #7

          I always found this alert similar to some alerts common on Brazil roads: "Warning, Reduce your speed: Danger Ahead". Ok, very useful: which danger should I look for? Holes on the road? An accident? Animals? Children crossing the road? UFO landing zone? The chupa-cabra? Due to technical difficulties my previous signature, "I see dumb people" will be off until further notice. Too many people were thinking I was talking about them... :sigh:

          1 Reply Last reply
          0
          • P Paul Watson

            Go XML ;)

            public enum DHSAdvisoryLevel
            {
            SEVERE,
            HIGH,
            ELEVATED,
            GUARDED,
            LOW,
            UNKNOWN
            }

            I would be more worried if the value was set to UNKNOWN than SEVER. regards, Paul Watson Bluegrass South Africa Christopher Duncan quoted: "...that would require my explaining Einstein's Fear of Relatives" Crikey! ain't life grand? Einstein says...

            D Offline
            D Offline
            Daniel Turini
            wrote on last edited by
            #8

            Paul Watson wrote: I would be more worried if the value was set to UNKNOWN than SEVER. It's better be worried: the 'Unknown' danger is what we live daily, since it's impossible to predict the exact moment of your death, it's impossible to predict your danger level. So, for the sake of the precision, it should never be worried about 'Unknown'. Due to technical difficulties my previous signature, "I see dumb people" will be off until further notice. Too many people were thinking I was talking about them... :sigh:

            1 Reply Last reply
            0
            • P Paul Watson

              Heck, I can't even find the Terror Alert Status page on the site with my eyes, never mind an XML feed. Wherever it is, why not do a web-scrape if they don't supply XML? regards, Paul Watson Bluegrass South Africa Christopher Duncan quoted: "...that would require my explaining Einstein's Fear of Relatives" Crikey! ain't life grand? Einstein says...

              H Offline
              H Offline
              Heath Stewart
              wrote on last edited by
              #9

              http://www.dhs.gov[^] You could do a web scrape of the image at the top of the page, but that link to the XML document I posted would definitely save you a lot of trouble.

              Microsoft MVP, Visual C# My Articles

              S 1 Reply Last reply
              0
              • H Heath Stewart

                http://www.dhs.gov[^] You could do a web scrape of the image at the top of the page, but that link to the XML document I posted would definitely save you a lot of trouble.

                Microsoft MVP, Visual C# My Articles

                S Offline
                S Offline
                srt7
                wrote on last edited by
                #10

                Stewart, Thanks a bunch for the links...appreciate it. Regards, Tiruvan

                1 Reply Last reply
                0
                • M Matt Newman

                  Jim A. Johnson wrote: Does anyone still pay attention to that? I know many media outlets like to cry bloody murder when it goes up but thats the only thing I've seen it used for. (and not many people pay attention then) Matt Newman
                  All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30

                  S Offline
                  S Offline
                  srt7
                  wrote on last edited by
                  #11

                  :):):)....I see what you are saying but yes there are people who will want to see that. Regards, Tiruvan

                  1 Reply Last reply
                  0
                  • P Paul Watson

                    Go XML ;)

                    public enum DHSAdvisoryLevel
                    {
                    SEVERE,
                    HIGH,
                    ELEVATED,
                    GUARDED,
                    LOW,
                    UNKNOWN
                    }

                    I would be more worried if the value was set to UNKNOWN than SEVER. regards, Paul Watson Bluegrass South Africa Christopher Duncan quoted: "...that would require my explaining Einstein's Fear of Relatives" Crikey! ain't life grand? Einstein says...

                    J Offline
                    J Offline
                    Jeff Martin
                    wrote on last edited by
                    #12

                    Paul Watson said: SEVER SEVER? Is that when terrorists are threating to cut off our arms and legs?:omg: Jeff Martin Triple20 Software

                    1 Reply Last reply
                    0
                    • S srt7

                      Is it possible to get an XML feed etc. from the Whitehouse page showing the terror alert status. I work for a university and we were thinking of putting it on our page ONLY if it can be automatically updated. Regards, Tiruvan

                      T Offline
                      T Offline
                      Terry ONolley
                      wrote on last edited by
                      #13

                      It would be easier to hook up biometric monitors on a hundred random people and when their blood pressure shoots up, you will know to change it from elevated to high. In 5 years or so, you can make the default status low instead of elevated.


                      Glano perictu com sahni delorin!

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups