parsing specific strings from xml to a sql db in javascript : i am looking for the best way to parse a specific string from a xml page.

the page in question will have lots of links all with a prefix video and i want to save the number after video/ also has to be a specific line where the video is located.

eg. <vidloc>http://example.com/video/12345/myvid.mp4

so i want to be able to search for video in <vidloc> and take only the number 12345

also the url page number and save these both into a db under vidId, pageNum.

thanks.