Re: How to get the DOM from a XML page
- From: John Bokma <john@xxxxxxxxxxxxxxx>
- Date: 27 Nov 2006 16:56:13 GMT
"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/
.
- References:
- How to get the DOM from a XML page
- From: novostik@xxxxxxxxxxxxxx
- How to get the DOM from a XML page
- Prev by Date: Re: Errors in Perl Function
- Next by Date: Re: Using perl to parse verilog
- Previous by thread: How to get the DOM from a XML page
- Next by thread: Re: How to get the DOM from a XML page
- Index(es):
Relevant Pages
|
|