republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » Javascript - parse xml string
Search Topic:
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
attachment post to email »
« Saving values on a web server...  
AuthorAll Replies

muiredised
ESSE QUAM VIDERI

join:2007-06-11
Tacoma, WA

reply to Entelligence
Re: Javascript - parse xml string

This is very easy in Gecko based browsers because when you insert a string with innerHTML it is parsed and added into the DOM right away, and they have a non-standard method called DOMParser(). Internet Explorer however, is much more of a challenge. For a cross browser solution I found this:

»jmvidal.cse.sc.edu/talks/javascr···ides.xml

I was able to accomplish what you desire using sections 1.1 and 1.3 from the above link. I basically copied and pasted the code from those two sections, preceded it with "var XML = {};" and was able to access the contents of your xml_string via the DOM.

Beware of the differences between the HTML DOM and the XML DOM. More info on this can be found here (this article also features the same code as the above link):

»www.webreference.com/programming···2/4.html

Hope that helps.

Forums » Tech and Talk » OS and Software » Webmasters and Developersattachment post to email »
« Saving values on a web server...  


Saturday, 28-Nov 01:55:37 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [121] Time Warner Cable Fires Broadside At Broadcasters
· [112] New AT&T Ad Campaign Hits Back At Verizon
· [96] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [70] TiVo Sees Record Customer Losses
· [69] In-Flight Internet Headed For Bumpy Landing?
· [66] Verizon CEO: Hulu Will Be Dead Soon
· [62] Thanksgiving Open Thread
· [50] Weekend Open Thread
· [40] EFF Wages War On Fine Print
Most people now reading
· [ PVP] 3.2 DK PvP D/W Spec... [World of Warcraft]
· IPComms Free DIDs now with sip registration maybe?? [VOIP Tech Chat]
· Backstab vs screws (not which to use) [Home Repair & Improvement]
· Windows 7 boot manager editing questions [Microsoft Help]
· So we need a legitimate reason to use a lot of bandwidth? [TekSavvy]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· [WIN7] Can I use Windows 7 disc to boot up install? [Microsoft Help]
· [Newsgroups] Newzleech down? [Filesharing Software]
· Only firefox accesses Internet? [Security]