republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


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

join:2007-06-11
Tacoma, WA

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...  


Thursday, 26-Nov 08:17:50 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [105] New AT&T Ad Campaign Hits Back At Verizon
· [104] Time Warner Cable Fires Broadside At Broadcasters
· [95] Apple Joins AT&T Verizon Snark Fest
· [85] New Bill Takes Aim At Higher Verizon ETFs
· [63] TiVo Sees Record Customer Losses
· [48] In-Flight Internet Headed For Bumpy Landing?
· [34] Senators Want ACTA Made Public
· [32] Despite Billions In USF Fees, U.S. Libraries Lack Bandwidth
· [30] Earthlink Suffers From Major E-mail Outage
· [30] AT&T Offers New Prepaid Wireless plans
Most people now reading
· Windows 7 boot manager editing questions [Microsoft Help]
· Whats the big deal about being "Old School"....? [World of Warcraft]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· I'll Just Unplug That... [No, I Will Not Fix Your #@$!! Computer]
· [Config] cisco asa 5505 with multiple outside IP addresses [Cisco]
· [Snow Leopard] NFS Mounts - no more Directory Utility [All Things Macintosh]
· USA made drywall problems. [Home Repair & Improvement]
· Fiber to the Premises [Comcast HSI]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]