Re: How to get the DOM from a XML page



"novostik@xxxxxxxxxxxxxx" <novostik@xxxxxxxxxxxxxx> wrote:

The problem is that it gives an output for some files but gives some
error message for other like the google and yahoo hompages.
could you please help me out on this as I was not able to rectify
it.Why does it work for some page and why not for others?
Could you please provide me a solution for this....

I am guessing here, but XHTML is widely used, but wrong. Most people using
it have no clue what XHTML means, and hence use it like HTML and end up
with documents that are not well-formed. If you want to parse stuff that's
out on the web, use something like HTML::TreeBuilder.

If you make your own XHTML pages, you might want to think again, twice
even.

--
John Experienced Perl programmer: http://castleamber.com/

Perl help, tutorials, and examples: http://johnbokma.com/perl/
.



Relevant Pages

  • Re: CSS not visible with XHTML decleration
    ... with it in the same way, same browser, and have it actually work. ... Google Groups had got an error in it's coding somewhere, ... Go and learn how to use XHTML. ... Don't forget to multi-post your replies too, ...
    (alt.html)
  • Re: THIS IS MOHAMMED 12
    ... How long did people complain about the Google Groups ... You see spam, you report spam, you block the person that posted it, you ... evangelism: XHTML 1.0 Strict ...
    (comp.lang.javascript)
  • Re: XHTML ?
    ... > Is it true that creating pages in XHTML has positive effect on ... > advancement in the search engines, in particular in the Google? ...
    (alt.internet.search-engines)
  • Re: XHTML ?
    ... >>Is it true that creating pages in XHTML has positive effect on ... >>advancement in the search engines, in particular in the Google? ...
    (alt.internet.search-engines)