<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: PHP &#8211; How to Parse Html DOM with DOMDocument	</title>
	<atom:link href="https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Sat, 23 Dec 2023 21:37:58 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Matt K.		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-364685</link>

		<dc:creator><![CDATA[Matt K.]]></dc:creator>
		<pubDate>Sat, 23 Dec 2023 21:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-364685</guid>

					<description><![CDATA[Thank you for the post]]></description>
			<content:encoded><![CDATA[<p>Thank you for the post</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bert Hooyman		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-334828</link>

		<dc:creator><![CDATA[Bert Hooyman]]></dc:creator>
		<pubDate>Fri, 08 Apr 2022 08:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-334828</guid>

					<description><![CDATA[Here is a working php script that adds some enhancements to this useful article:

&#060;?php
$html = file_get_contents(&#034;sample html document.html&#034;);
echo &#034;0 this is the input HTML:&quot;;
echo &quot;&quot;;
echo htmlentities($html);
echo &quot;&quot;;

// a new dom object
$dom = new domDocument; 

// load the html into the object
$dom-&#062;loadHTML($html); 

// discard white space
removeEmptyTextNodes($dom);
// preserveWhiteSpace does not help us much
$dom-&#062;preserveWhiteSpace = false;

//get element by id
$mango_div = $dom-&#062;getElementById(&#039;mango&#039;);

if(!$mango_div)
{
	die(&quot;Element not found&quot;);
}

echo &quot;1 &#039;mango&#039; element found&quot;;
echo &quot;2 the node value of the &#039;mango&#039; element:&quot;;
echo $mango_div-&#062;nodeValue;
echo &quot;3 saveHTML on the mango div:&quot;;
echo $dom-&#062;saveHTML($mango_div);
echo &quot;4 Another way to do this using canonicalization (C14N) of the node itself:&quot;;
//echo the contents of mango_div element
echo $mango_div-&#062;C14N();

echo &quot;5 retrieving the inner HTML of the &#039;.inner&#039; table:&quot;;
$tables = $dom-&#062;getElementsByTagName(&#039;table&#039;);
echo get_inner_html($tables-&#062;item(0));

echo &quot;6 get elements by tag name &#039;table&#039;:&quot;;
$tables = $dom-&#062;getElementsByTagName(&#039;table&#039;);
foreach($tables as $table)
{
	echo $dom-&#062;saveHTML($table);
}
echo &quot;7 alternative way to use getElementsByTagName, using the item() method:&quot;;
$tables = $dom-&#062;getElementsByTagName(&#039;table&#039;);
echo &quot;Found : &quot;.$tables-&#062;length. &quot; items&quot;;
$i = 0;
while($table = $tables-&#062;item($i++))
{
	echo $dom-&#062;saveHTML($table);
}

echo &quot;8 Finding the attributes of an element:&quot;;
$tables = $dom-&#062;getElementsByTagName(&#039;table&#039;);
$i = 0;
while($table = $tables-&#062;item($i++))
{
	foreach($table-&#062;attributes as $attr)
	{
		echo $attr-&#062;name . &quot; &quot; . $attr-&#062;value . &quot;&quot;;
	}
}

echo &quot;9 Finding named attributes (using class as example):&quot;;
$tables = $dom-&#062;getElementsByTagName(&#039;table&#039;);
$i = 0;
while($table = $tables-&#062;item($i++))
{
	$class_node = $table-&#062;attributes-&#062;getNamedItem(&#039;class&#039;);
	
	if($class_node)
	{
		echo &quot;Class is : &quot; . $table-&#062;attributes-&#062;getNamedItem(&#039;class&#039;)-&#062;value . PHP_EOL;
	}
}

echo &quot;10 Looping over child nodes:&quot;;
$tables = $dom-&#062;getElementsByTagName(&#039;table&#039;);
$table = $tables-&#062;item(1);

//get the number of rows in the 2nd table
// when empty text nodes are not removed, there will be 11 child nodes.
// when empty text nodes are removed there are 5  nodes
echo $table-&#062;childNodes-&#062;length; 

//content of each child
foreach($table-&#062;childNodes as $child)
{
	echo $child-&#062;ownerDocument-&#062;saveHTML($child);
}

echo &quot;11 Check for existence of child nodes:&quot;;
if( $table-&#062;hasChildNodes() )
{
	//print content of children
	foreach($table-&#062;childNodes as $child)
	{
		echo $child-&#062;ownerDocument-&#062;saveHTML($child);
	}
}

echo &quot;12 Compare two nodes for equality:&quot;;
$tables = $dom-&#062;getElementsByTagName(&#039;table&#039;);
$table = $tables-&#062;item(1);
$table2 = $dom-&#062;getElementById(&#039;data&#039;);

var_dump($table-&#062;isSameNode($table2));

exit(0);

function get_inner_html( $node ) 
{
	$innerHTML= &#039;&#039;;
	$children = $node-&#062;childNodes;
	
	foreach ($children as $child)
	{
		$innerHTML .= $child-&#062;ownerDocument-&#062;saveXML( $child );
	}
	
	return $innerHTML;
}

// recursive white space remover: DOMText nodes containing only white space
// this is taken from the loadHTML documentation page on php.net (April 2022)
function removeEmptyTextNodes(DOMNode $node) {
    if ($node-&#062;hasChildNodes()) {
        // depth-first, right-to-left
        for ($i = $node-&#062;childNodes-&#062;length - 1; $i &#062;= 0; --$i) {
            removeEmptyTextNodes($node-&#062;childNodes-&#062;item($i));
        }
    }
    if ($node-&#062;nodeType === XML_TEXT_NODE &#038;&#038; // this is a text node
        !$node-&#062;hasChildNodes() &#038;&#038;           // this is a leaf node
        !$node-&#062;hasAttributes() &#038;&#038;           // it has no attributes
        empty(trim($node-&#062;textContent))) {   // and there is only white space in there
        $node-&#062;parentNode-&#062;removeChild($node);
    }
}
?&#062;]]></description>
			<content:encoded><![CDATA[<p>Here is a working php script that adds some enhancements to this useful article:</p>
<p>&lt;?php<br />
$html = file_get_contents(&quot;sample html document.html&quot;);<br />
echo &quot;0 this is the input HTML:&#8221;;<br />
echo &#8220;&#8221;;<br />
echo htmlentities($html);<br />
echo &#8220;&#8221;;</p>
<p>// a new dom object<br />
$dom = new domDocument; </p>
<p>// load the html into the object<br />
$dom-&gt;loadHTML($html); </p>
<p>// discard white space<br />
removeEmptyTextNodes($dom);<br />
// preserveWhiteSpace does not help us much<br />
$dom-&gt;preserveWhiteSpace = false;</p>
<p>//get element by id<br />
$mango_div = $dom-&gt;getElementById(&#8216;mango&#8217;);</p>
<p>if(!$mango_div)<br />
{<br />
	die(&#8220;Element not found&#8221;);<br />
}</p>
<p>echo &#8220;1 &#8216;mango&#8217; element found&#8221;;<br />
echo &#8220;2 the node value of the &#8216;mango&#8217; element:&#8221;;<br />
echo $mango_div-&gt;nodeValue;<br />
echo &#8220;3 saveHTML on the mango div:&#8221;;<br />
echo $dom-&gt;saveHTML($mango_div);<br />
echo &#8220;4 Another way to do this using canonicalization (C14N) of the node itself:&#8221;;<br />
//echo the contents of mango_div element<br />
echo $mango_div-&gt;C14N();</p>
<p>echo &#8220;5 retrieving the inner HTML of the &#8216;.inner&#8217; table:&#8221;;<br />
$tables = $dom-&gt;getElementsByTagName(&#8216;table&#8217;);<br />
echo get_inner_html($tables-&gt;item(0));</p>
<p>echo &#8220;6 get elements by tag name &#8216;table&#8217;:&#8221;;<br />
$tables = $dom-&gt;getElementsByTagName(&#8216;table&#8217;);<br />
foreach($tables as $table)<br />
{<br />
	echo $dom-&gt;saveHTML($table);<br />
}<br />
echo &#8220;7 alternative way to use getElementsByTagName, using the item() method:&#8221;;<br />
$tables = $dom-&gt;getElementsByTagName(&#8216;table&#8217;);<br />
echo &#8220;Found : &#8220;.$tables-&gt;length. &#8221; items&#8221;;<br />
$i = 0;<br />
while($table = $tables-&gt;item($i++))<br />
{<br />
	echo $dom-&gt;saveHTML($table);<br />
}</p>
<p>echo &#8220;8 Finding the attributes of an element:&#8221;;<br />
$tables = $dom-&gt;getElementsByTagName(&#8216;table&#8217;);<br />
$i = 0;<br />
while($table = $tables-&gt;item($i++))<br />
{<br />
	foreach($table-&gt;attributes as $attr)<br />
	{<br />
		echo $attr-&gt;name . &#8221; &#8221; . $attr-&gt;value . &#8220;&#8221;;<br />
	}<br />
}</p>
<p>echo &#8220;9 Finding named attributes (using class as example):&#8221;;<br />
$tables = $dom-&gt;getElementsByTagName(&#8216;table&#8217;);<br />
$i = 0;<br />
while($table = $tables-&gt;item($i++))<br />
{<br />
	$class_node = $table-&gt;attributes-&gt;getNamedItem(&#8216;class&#8217;);</p>
<p>	if($class_node)<br />
	{<br />
		echo &#8220;Class is : &#8221; . $table-&gt;attributes-&gt;getNamedItem(&#8216;class&#8217;)-&gt;value . PHP_EOL;<br />
	}<br />
}</p>
<p>echo &#8220;10 Looping over child nodes:&#8221;;<br />
$tables = $dom-&gt;getElementsByTagName(&#8216;table&#8217;);<br />
$table = $tables-&gt;item(1);</p>
<p>//get the number of rows in the 2nd table<br />
// when empty text nodes are not removed, there will be 11 child nodes.<br />
// when empty text nodes are removed there are 5  nodes<br />
echo $table-&gt;childNodes-&gt;length; </p>
<p>//content of each child<br />
foreach($table-&gt;childNodes as $child)<br />
{<br />
	echo $child-&gt;ownerDocument-&gt;saveHTML($child);<br />
}</p>
<p>echo &#8220;11 Check for existence of child nodes:&#8221;;<br />
if( $table-&gt;hasChildNodes() )<br />
{<br />
	//print content of children<br />
	foreach($table-&gt;childNodes as $child)<br />
	{<br />
		echo $child-&gt;ownerDocument-&gt;saveHTML($child);<br />
	}<br />
}</p>
<p>echo &#8220;12 Compare two nodes for equality:&#8221;;<br />
$tables = $dom-&gt;getElementsByTagName(&#8216;table&#8217;);<br />
$table = $tables-&gt;item(1);<br />
$table2 = $dom-&gt;getElementById(&#8216;data&#8217;);</p>
<p>var_dump($table-&gt;isSameNode($table2));</p>
<p>exit(0);</p>
<p>function get_inner_html( $node )<br />
{<br />
	$innerHTML= &#8221;;<br />
	$children = $node-&gt;childNodes;</p>
<p>	foreach ($children as $child)<br />
	{<br />
		$innerHTML .= $child-&gt;ownerDocument-&gt;saveXML( $child );<br />
	}</p>
<p>	return $innerHTML;<br />
}</p>
<p>// recursive white space remover: DOMText nodes containing only white space<br />
// this is taken from the loadHTML documentation page on php.net (April 2022)<br />
function removeEmptyTextNodes(DOMNode $node) {<br />
    if ($node-&gt;hasChildNodes()) {<br />
        // depth-first, right-to-left<br />
        for ($i = $node-&gt;childNodes-&gt;length &#8211; 1; $i &gt;= 0; &#8211;$i) {<br />
            removeEmptyTextNodes($node-&gt;childNodes-&gt;item($i));<br />
        }<br />
    }<br />
    if ($node-&gt;nodeType === XML_TEXT_NODE &amp;&amp; // this is a text node<br />
        !$node-&gt;hasChildNodes() &amp;&amp;           // this is a leaf node<br />
        !$node-&gt;hasAttributes() &amp;&amp;           // it has no attributes<br />
        empty(trim($node-&gt;textContent))) {   // and there is only white space in there<br />
        $node-&gt;parentNode-&gt;removeChild($node);<br />
    }<br />
}<br />
?&gt;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Amit Shee		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-167500</link>

		<dc:creator><![CDATA[Amit Shee]]></dc:creator>
		<pubDate>Tue, 25 Sep 2018 09:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-167500</guid>

					<description><![CDATA[Great article! I would be very interested to read about create/modify html nodes.]]></description>
			<content:encoded><![CDATA[<p>Great article! I would be very interested to read about create/modify html nodes.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mathieu		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-166170</link>

		<dc:creator><![CDATA[Mathieu]]></dc:creator>
		<pubDate>Fri, 24 Aug 2018 13:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-166170</guid>

					<description><![CDATA[Hi, I have a question. As I&#039;m not sure the HTML standards are always respected when I parse a page, I&#039;d like to retrieve a tag with a specific id and classes.

Something like:
Hello there
in other words : span#myId.class1.class2

is there a way to perform this with DOMElement ?

thanks]]></description>
			<content:encoded><![CDATA[<p>Hi, I have a question. As I&#8217;m not sure the HTML standards are always respected when I parse a page, I&#8217;d like to retrieve a tag with a specific id and classes.</p>
<p>Something like:<br />
Hello there<br />
in other words : span#myId.class1.class2</p>
<p>is there a way to perform this with DOMElement ?</p>
<p>thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: dexidle		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-152405</link>

		<dc:creator><![CDATA[dexidle]]></dc:creator>
		<pubDate>Tue, 23 Jan 2018 04:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-152405</guid>

					<description><![CDATA[Thanks, great tutorial. It helped me.]]></description>
			<content:encoded><![CDATA[<p>Thanks, great tutorial. It helped me.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Adolf		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-104565</link>

		<dc:creator><![CDATA[Adolf]]></dc:creator>
		<pubDate>Fri, 03 Feb 2017 19:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-104565</guid>

					<description><![CDATA[The variable $html in the examples above was not defined! Or was it? Where or how? Please]]></description>
			<content:encoded><![CDATA[<p>The variable $html in the examples above was not defined! Or was it? Where or how? Please</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Srikalyan		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-69433</link>

		<dc:creator><![CDATA[Srikalyan]]></dc:creator>
		<pubDate>Sat, 05 Mar 2016 11:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-69433</guid>

					<description><![CDATA[Thanks. Great Tutorial. But can you please add the outputs of the code as well.]]></description>
			<content:encoded><![CDATA[<p>Thanks. Great Tutorial. But can you please add the outputs of the code as well.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Razzi.eu		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-67409</link>

		<dc:creator><![CDATA[Razzi.eu]]></dc:creator>
		<pubDate>Mon, 15 Sep 2014 20:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-67409</guid>

					<description><![CDATA[Many thanks, got i finally working because of your example]]></description>
			<content:encoded><![CDATA[<p>Many thanks, got i finally working because of your example</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jeffrey		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65930</link>

		<dc:creator><![CDATA[Jeffrey]]></dc:creator>
		<pubDate>Fri, 17 Jan 2014 17:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-65930</guid>

					<description><![CDATA[This is an old article, but I&#039;m just getting started... In any case I think you are missing a &quot;$&quot; in front of the variable in your code above if(!mango_div).. Atleast I did. Thanks]]></description>
			<content:encoded><![CDATA[<p>This is an old article, but I&#8217;m just getting started&#8230; In any case I think you are missing a &#8220;$&#8221; in front of the variable in your code above if(!mango_div).. Atleast I did. Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: johnwright79		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65769</link>

		<dc:creator><![CDATA[johnwright79]]></dc:creator>
		<pubDate>Mon, 21 Oct 2013 15:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-65769</guid>

					<description><![CDATA[Thanks Silver, your get_inner_html function has saved me a lot of time. Really great article.]]></description>
			<content:encoded><![CDATA[<p>Thanks Silver, your get_inner_html function has saved me a lot of time. Really great article.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: bhavesh		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65722</link>

		<dc:creator><![CDATA[bhavesh]]></dc:creator>
		<pubDate>Sat, 21 Sep 2013 11:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-65722</guid>

					<description><![CDATA[$mango_div = $dom-&#062;getElementById(&#039;mango&#039;);

above text not working in windows 7. it occurring this error 


Catchable fatal error:  Object of class DOMElement could not be converted to string in /var/www/websites/shabbonacreekrv/shabbonacreekrv.com/www/html/vehicle.php on line 65



to test it...]]></description>
			<content:encoded><![CDATA[<p>$mango_div = $dom-&gt;getElementById(&#8216;mango&#8217;);</p>
<p>above text not working in windows 7. it occurring this error </p>
<p>Catchable fatal error:  Object of class DOMElement could not be converted to string in /var/www/websites/shabbonacreekrv/shabbonacreekrv.com/www/html/vehicle.php on line 65</p>
<p>to test it&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonas Zumkehr		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65683</link>

		<dc:creator><![CDATA[Jonas Zumkehr]]></dc:creator>
		<pubDate>Wed, 28 Aug 2013 08:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-65683</guid>

					<description><![CDATA[Great article! I would be very interested to read about create/modify html nodes.]]></description>
			<content:encoded><![CDATA[<p>Great article! I would be very interested to read about create/modify html nodes.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vasim Padhiyar		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65629</link>

		<dc:creator><![CDATA[Vasim Padhiyar]]></dc:creator>
		<pubDate>Sat, 03 Aug 2013 11:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-65629</guid>

					<description><![CDATA[Hello I am getting Following error : 

Warning:  domdocument::domdocument() expects parameter 2....

Fatal error:  Call to undefined method domdocument::loadHTML()

I am using php 5.2.x + WAMP

php_domxml extension is enebled.

What is wrong in my code ?? $html has html content.. i did not paste it here. its the same as your example.

$dom = new DOMDocument(&#039;1.0&#039;,&#039;utf-8&#039;);
$dom-&#062;loadHTML($html);
$dom-&#062;preserveWhiteSpace = false;
$tables = $dom-&#062;getElementsByTagName(&#039;table&#039;);
print_r($tables);]]></description>
			<content:encoded><![CDATA[<p>Hello I am getting Following error : </p>
<p>Warning:  domdocument::domdocument() expects parameter 2&#8230;.</p>
<p>Fatal error:  Call to undefined method domdocument::loadHTML()</p>
<p>I am using php 5.2.x + WAMP</p>
<p>php_domxml extension is enebled.</p>
<p>What is wrong in my code ?? $html has html content.. i did not paste it here. its the same as your example.</p>
<p>$dom = new DOMDocument(&#8216;1.0&#8242;,&#8217;utf-8&#8217;);<br />
$dom-&gt;loadHTML($html);<br />
$dom-&gt;preserveWhiteSpace = false;<br />
$tables = $dom-&gt;getElementsByTagName(&#8216;table&#8217;);<br />
print_r($tables);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jlgarhdez		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65522</link>

		<dc:creator><![CDATA[jlgarhdez]]></dc:creator>
		<pubDate>Thu, 06 Jun 2013 11:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-65522</guid>

					<description><![CDATA[Thanks, great tutorial!]]></description>
			<content:encoded><![CDATA[<p>Thanks, great tutorial!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65371</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Mon, 07 Jan 2013 08:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-65371</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65370&quot;&gt;Kevin Gong&lt;/a&gt;.

thanks for the feedback, shall update the post soon.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65370">Kevin Gong</a>.</p>
<p>thanks for the feedback, shall update the post soon.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kevin Gong		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65370</link>

		<dc:creator><![CDATA[Kevin Gong]]></dc:creator>
		<pubDate>Mon, 07 Jan 2013 07:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-65370</guid>

					<description><![CDATA[Thanks for the tut. Would be helpful if you included the code (as you have) + the return values of your echo statements!]]></description>
			<content:encoded><![CDATA[<p>Thanks for the tut. Would be helpful if you included the code (as you have) + the return values of your echo statements!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Delaiah		</title>
		<link>https://www.binarytides.com/php-tutorial-parsing-html-with-domdocument/comment-page-1/#comment-65369</link>

		<dc:creator><![CDATA[Delaiah]]></dc:creator>
		<pubDate>Sat, 22 Dec 2012 15:01:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=2993#comment-65369</guid>

					<description><![CDATA[Thanks, this helped me a lot (was just looking for a nice DOCDocument example)!]]></description>
			<content:encoded><![CDATA[<p>Thanks, this helped me a lot (was just looking for a nice DOCDocument example)!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
