Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16692
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.datemas.de!feeder.erje.net!eweka.nl!lightspeed.eweka.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="ISO-8859-1" |
| Message-ID | <10917678.yukSOJlrKS@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Wed, 17 Oct 2012 20:05:46 +0200 |
| User-Agent | KNode/4.4.11 |
| Content-Transfer-Encoding | 7Bit |
| X-Face | %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== |
| Subject | Re: Display XML content in HTML page |
| Newsgroups | comp.lang.javascript |
| References | <1a067dc0-9d64-4b7c-ba61-736bf747bb78@googlegroups.com> <7cbt78t4o9lq18ta0tisg2ftq8gmp3pm9k@4ax.com> <pRBfs.2677$7h4.909@newsfe10.iad> |
| Followup-To | comp.lang.javascript |
| MIME-Version | 1.0 |
| Lines | 43 |
| NNTP-Posting-Date | 17 Oct 2012 20:05:46 CEST |
| NNTP-Posting-Host | 34ae1238.newsspool2.arcor-online.net |
| X-Trace | DXC=[bkAi^aCP8_\9P[:DUn00QA9EHlD;3YcR4Fo<]lROoRQ8kF<OcfhCO[lLE37\F?SNUDZm8W4\YJN\J`:FmdeL>KPXB;PldmT3:SB?nHD1FHW\V |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | csiph.com comp.lang.javascript:16692 |
Followups directed to: comp.lang.javascript
Show key headers only | View raw
Daniel Pitts wrote: > On 10/17/12 6:11 AM, Jim T. wrote: >> Pervez Mulla wrote: >>> I am newbie , I have application in which check-box tree is present. I >>> want to pre-populate the check-box's if user before checked some of >>> those check box. >>> >>> For that am getting XML format from my back-end perl script as shown >>> below.like , in below XML only 0, 43,44,45,46 and 50 are coming so only >>> those respective checkbox need to checked on page load.I want to display >>> those checked check-box on page load .How can I do this .......? >>> >>> I tried with so many examples . but am not getting solution for my >>> problem .Below is my XML format data which is am getting from perl >>> script . >> >> Is the problem parsing the XML? If so RegExp should be up to the job >> in this case. If that's the the problem please be more specific. > > No. Just no. > RegExp is *never* the solution to XML parsing. Bad! Bad! Utter nonsense. It can be *a* solution, but it has to be done carefully, with the Chomsky hierarchy in mind. In particular, never try to use a *single* RegExp to match a *self-nesting* or otherwise *several times occuring* element in an XML document. (An XML parser can be written that uses a RegExp to match language atoms efficiently and builds a document tree object reliably from the markup. Same for HTML, BTW, but its lacking well- formedness makes it harder.) In this case, however, using the `responseXML' XHR property is the best solution; no additional parsing necessary. For that property to be useful, the server must send a proper XML-related Content-Type; if there is none specific, text/xml should work and is appropriate. PointedEars -- Sometimes, what you learn is wrong. If those wrong ideas are close to the root of the knowledge tree you build on a particular subject, pruning the bad branches can sometimes cause the whole tree to collapse. -- Mike Duffy in cljs, <news:Xns9FB6521286DB8invalidcom@94.75.214.39>
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Display XML content in HTML page Pervez Mulla <mullapervez@gmail.com> - 2012-10-17 05:23 -0700
Re: Display XML content in HTML page Jim T. <x@y.z> - 2012-10-17 09:11 -0400
Re: Display XML content in HTML page Jim T. <x@y.z> - 2012-10-17 09:20 -0400
Re: Display XML content in HTML page Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-10-17 10:24 -0700
Re: Display XML content in HTML page Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-17 20:05 +0200
Re: Display XML content in HTML page Jim T. <x@y.z> - 2012-10-17 21:31 -0400
Re: Display XML content in HTML page Pervez Mulla <mullapervez@gmail.com> - 2012-10-17 21:42 -0700
Re: Display XML content in HTML page Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-10-17 15:39 +0200
Re: Display XML content in HTML page Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-17 20:03 +0200
Re: Display XML content in HTML page Pervez Mulla <mullapervez@gmail.com> - 2012-10-17 21:38 -0700
Re: Display XML content in HTML page Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-18 07:41 +0200
Re: Display XML content in HTML page Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-29 12:09 +0100
Re: Display XML content in HTML page Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-11-09 23:03 +0100
Re: Display XML content in HTML page Danny <dann90038@gmail.com> - 2012-10-17 13:19 -0700
Re: Display XML content in HTML page Bart Van der Donck <bart@nijlen.com> - 2012-10-31 00:50 -0700
csiph-web