Current time: 11-25-2020, 03:34 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WPT location reorganization
10-13-2016, 02:31 PM (This post was last modified: 10-13-2016 02:34 PM by shmilla.)
Post: #5
RE: WPT location reorganization
Hey Mark, thanks... so I'll one up this piece of info...

So in my older instances I would look up
location/location
location/Browser

but comparing XML I notice it's now
location/location
location/Browsers (note the extra "s")

In my code I now test for location/Browsers, if I don't see it, I test for location/Browser so my code is backward compatible (my tool is designed to work across WPT installations/instances)

Then I just list each.. i.e.

Code:
location = get nodes for (//location)
for each  location
  curlocation = /location
  browserlist = try to get /Browsers or /Browser
  browserarray = browserlist.split(",")
   for each browser in browserarray
     list curlocation:browser
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WPT location reorganization - shmilla - 10-13-2016, 01:08 AM
RE: WPT location reorganization - themark - 10-13-2016, 05:45 AM
RE: WPT location reorganization - shmilla - 10-13-2016, 06:00 AM
RE: WPT location reorganization - themark - 10-13-2016, 07:34 AM
RE: WPT location reorganization - shmilla - 10-13-2016 02:31 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)