Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12873
| Message-ID | <1479539.WnM6VCZYAS@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2014-02-19 22:28 +0100 |
| Subject | Re: Help with regex |
| Newsgroups | comp.lang.php |
| References | (2 earlier) <b37d9e6a-1221-4b80-b016-17eb380f71b0@googlegroups.com> <5304c990$0$9515$9b4e6d93@newsspool1.arcor-online.net> <b0d1165d-346c-4c20-bcab-2747c12cfc93@googlegroups.com> <1911532.8bCJ1WhPrK@PointedEars.de> <530514dd$0$9518$9b4e6d93@newsspool1.arcor-online.net> |
Christoph Michael Becker wrote: > Thomas 'PointedEars' Lahn wrote: >> knal wrote: >>> Could you please give a little more direction on the DOM? >> I presume he could. > > Actually, I have not yet used PHP's DOM extension. However, it should > not be too different from other DOM implementations, so basically it > comes down to load an HTML document and than use XPath to get the > desired information. The mentioned keywords should be sufficient to > search the web -- at least for some first steps. However, implementations of the W3C DOM Core API do not require a way so that a document tree can be built from source code, nor is XPath support required. So you had better RTFM yourself before making the suggestion. There are few if any occasions where such wild guesses are useful. Lucky for you, you hit the nail this time: there are corresponding methods in this (PHP’s) implementation (so there is no need to search the Web). >> Ask what you want to know instead. > > Is there really so much difference between directly asking the question > "How can I use the DOM here?" and asking politely for "some more > direction on the DOM"? Yes, … >> Reformulating your stupid question to the smart one, “How can I use the >> DOM here?”, the answer becomes “RTFM: loadHTML”. >> >> Next time, post what you have tried before you ask. This is not free >> customer support for lazy people. >> >> <http://www.catb.org/~esr/faqs/smart-questions.html> … as explained in there. HTH PointedEars -- Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.) -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Help with regex knal <knalpiap@gmail.com> - 2014-02-19 01:18 -0800
Re: Help with regex Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-19 15:20 +0100
Re: Help with regex knal <knalpiap@gmail.com> - 2014-02-19 06:45 -0800
Re: Help with regex Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-19 16:11 +0100
Re: Help with regex knal <knalpiap@gmail.com> - 2014-02-19 07:17 -0800
Re: Help with regex Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-19 16:37 +0100
Re: Help with regex Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-19 21:32 +0100
Re: Help with regex Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-19 22:28 +0100
Re: Help with regex Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-20 22:43 +0100
Re: Help with regex Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-21 02:25 +0100
Re: Help with regex Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-23 17:57 +0100
Re: Help with regex Jerry Stuckle <jstucklex@attglobal.net> - 2014-02-19 13:48 -0500
Re: Help with regex "Peter H. Coffin" <hellsop@ninehells.com> - 2014-02-20 00:29 -0600
Re: Help with regex Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-19 16:30 +0100
Re: Help with regex The Natural Philosopher <tnp@invalid.invalid> - 2014-02-19 17:42 +0000
Re: Help with regex Scott Johnson <noonehome@chalupasworld.com> - 2014-02-19 15:38 -0800
csiph-web