in reply to Re: Namespace error while parsing html document.
in thread Namespace error while parsing html document.
Do you know why I was not able to pass $content->{_content} to parse_html_string(), It was blank. Isn't $content->{_content} suppose to have the the file downloaded?
Also,
The only reason I need to load the html page is because I wanted to parse stylesheet link out. For Instance:
Can I use RegExp to parse the below string? I would need to parse all three hrefs in to array.
<?xml-stylesheet href="perl1.css" type="text/css"?> <link href="//www.perl.org/css/perl1.css" rel="stylesheet"> <link href="/css/perl.css" rel="stylesheet">
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Namespace error while parsing html document.
by ikegami (Patriarch) on Jul 01, 2010 at 17:43 UTC |