<?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 DomDocument Tutorial</title>
	<atom:link href="http://www.php4every1.com/tutorials/php-domdocument-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/</link>
	<description>Blog with PHP, MySQL and other tutorials. You can also download my scripts, report a bug or leave a feedback.</description>
	<lastBuildDate>Mon, 30 Jan 2012 23:00:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Marijan Šuflaj</title>
		<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/comment-page-2/#comment-49568</link>
		<dc:creator>Marijan Šuflaj</dc:creator>
		<pubDate>Mon, 30 Jan 2012 23:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-49568</guid>
		<description>Ti trebas funkcije &lt;a href=&quot;http://www.php.net/manual/en/function.parse-str.php&quot; rel=&quot;nofollow&quot;&gt;parse_str&lt;/a&gt; i &lt;a href=&quot;http://php.net/manual/en/function.parse-url.php&quot; rel=&quot;nofollow&quot;&gt;parse_url&lt;/a&gt;. :)</description>
		<content:encoded><![CDATA[<p>Ti trebas funkcije <a href="http://www.php.net/manual/en/function.parse-str.php" rel="nofollow">parse_str</a> i <a href="http://php.net/manual/en/function.parse-url.php" rel="nofollow">parse_url</a>. <img src='http://www.php4every1.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dalibor</title>
		<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/comment-page-2/#comment-49511</link>
		<dc:creator>Dalibor</dc:creator>
		<pubDate>Mon, 30 Jan 2012 14:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-49511</guid>
		<description>Rjesio sam ipak
Trebalo je samo dodati $xml-&gt;PRICES-&gt;PRICE
neznam zasto nije odmah radilo a probo sam.

Kad smo vec kod toga znas li mozda kako na PRODUCT_CARD linku odsjeci gornji blok (ASBIS logo + linkovi)
Taj link u PRODUCT_CARD tagu je ustvari opis proizvoda koji bi trebao ubaciti u webshop ali nezelim linkove veleprodaje...
moze li DOM iscupati samo dio te kartice u neku varijablu koju bi onda stavljo u bazu umjesto linka koji mi nude u xml fajlu.
Thanx</description>
		<content:encoded><![CDATA[<p>Rjesio sam ipak<br />
Trebalo je samo dodati $xml-&gt;PRICES-&gt;PRICE<br />
neznam zasto nije odmah radilo a probo sam.</p>
<p>Kad smo vec kod toga znas li mozda kako na PRODUCT_CARD linku odsjeci gornji blok (ASBIS logo + linkovi)<br />
Taj link u PRODUCT_CARD tagu je ustvari opis proizvoda koji bi trebao ubaciti u webshop ali nezelim linkove veleprodaje&#8230;<br />
moze li DOM iscupati samo dio te kartice u neku varijablu koju bi onda stavljo u bazu umjesto linka koji mi nude u xml fajlu.<br />
Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dalibor</title>
		<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/comment-page-2/#comment-49410</link>
		<dc:creator>Dalibor</dc:creator>
		<pubDate>Sun, 29 Jan 2012 23:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-49410</guid>
		<description>Bok Marijan
Hvala na tutorijalu
Imam jedan sitan problem please help

Pokusavam parsirat xml fajl http://c-bit.hr/1/ASBIS/PriceAvail6.xml
na sljedeci nacin : 

$url = &quot;http://c-bit.hr/1/ASBIS/PriceAvail6.xml&quot;;
$xml = simplexml_load_file($url);

// loop begins
foreach($xml-&gt;PRICE as $PRICE) 
{blok naredbi}

I ova petlja normalno radi ali samo ako iz xml fajla prethodno editorom odrezem CONTENT tag. 
tj ostane u njemu samo &quot;PRICES&quot; i &quot;PRICE&quot;
Nekontam zasto nemogu izvuci varijablu $PRICE   ako je fajl orginalan kao na linku 

Hvala unaprijed</description>
		<content:encoded><![CDATA[<p>Bok Marijan<br />
Hvala na tutorijalu<br />
Imam jedan sitan problem please help</p>
<p>Pokusavam parsirat xml fajl <a href="http://c-bit.hr/1/ASBIS/PriceAvail6.xml" rel="nofollow">http://c-bit.hr/1/ASBIS/PriceAvail6.xml</a><br />
na sljedeci nacin : </p>
<p>$url = &#8220;http://c-bit.hr/1/ASBIS/PriceAvail6.xml&#8221;;<br />
$xml = simplexml_load_file($url);</p>
<p>// loop begins<br />
foreach($xml-&gt;PRICE as $PRICE)<br />
{blok naredbi}</p>
<p>I ova petlja normalno radi ali samo ako iz xml fajla prethodno editorom odrezem CONTENT tag.<br />
tj ostane u njemu samo &#8220;PRICES&#8221; i &#8220;PRICE&#8221;<br />
Nekontam zasto nemogu izvuci varijablu $PRICE   ako je fajl orginalan kao na linku </p>
<p>Hvala unaprijed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raptorak</title>
		<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-44905</link>
		<dc:creator>Raptorak</dc:creator>
		<pubDate>Tue, 03 Jan 2012 09:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-44905</guid>
		<description>Awesome tutorial. Thanks! How would one go about parsing many pages though (for example a paginated URL to pull page 1, page 2, etc. until it returns an empty dataset)?</description>
		<content:encoded><![CDATA[<p>Awesome tutorial. Thanks! How would one go about parsing many pages though (for example a paginated URL to pull page 1, page 2, etc. until it returns an empty dataset)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Yurow</title>
		<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-44856</link>
		<dc:creator>Jerry Yurow</dc:creator>
		<pubDate>Tue, 03 Jan 2012 03:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-44856</guid>
		<description>Very helpful, Marijan.  You should follow-up this tutorial with others.  This one covers the &quot;Read&quot; aspect of XML as a &quot;database.&quot;  The other aspects are: Creating nodes, Updating (changing a node&#039;s value), and Deleting a node.  Some useful variations would be deleting all nodes with a given value other than the first one with that value.  I am sure you can think of others as well.</description>
		<content:encoded><![CDATA[<p>Very helpful, Marijan.  You should follow-up this tutorial with others.  This one covers the &#8220;Read&#8221; aspect of XML as a &#8220;database.&#8221;  The other aspects are: Creating nodes, Updating (changing a node&#8217;s value), and Deleting a node.  Some useful variations would be deleting all nodes with a given value other than the first one with that value.  I am sure you can think of others as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-36974</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 22 Nov 2011 16:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-36974</guid>
		<description>Hi,

Just a quick note to say your tutorial helped me. Thanks for posting.

Jas</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Just a quick note to say your tutorial helped me. Thanks for posting.</p>
<p>Jas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: haneef</title>
		<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-35229</link>
		<dc:creator>haneef</dc:creator>
		<pubDate>Fri, 11 Nov 2011 09:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-35229</guid>
		<description>working good., thankx for posting</description>
		<content:encoded><![CDATA[<p>working good., thankx for posting</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sreejith</title>
		<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-32294</link>
		<dc:creator>Sreejith</dc:creator>
		<pubDate>Tue, 25 Oct 2011 07:10:23 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-32294</guid>
		<description>Thank you</description>
		<content:encoded><![CDATA[<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marijan Šuflaj</title>
		<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-26563</link>
		<dc:creator>Marijan Šuflaj</dc:creator>
		<pubDate>Mon, 05 Sep 2011 17:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-26563</guid>
		<description>How do you mean &quot;Delete HTML page&quot;? You mean to delete elements from HTML?</description>
		<content:encoded><![CDATA[<p>How do you mean &#8220;Delete HTML page&#8221;? You mean to delete elements from HTML?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijith vijayan</title>
		<link>http://www.php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-26406</link>
		<dc:creator>vijith vijayan</dc:creator>
		<pubDate>Fri, 02 Sep 2011 15:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-26406</guid>
		<description>A Part of my project code is:

$doc = new DOMDocument();
$doc-&gt;loadHTML($news);
//echo $doc-&gt;saveHTML();

$ext=&#039;.html&#039;;
$page_name=$name.$ext;
$path=$page_name;

$doc-&gt;save($path);

:it&#039;s working,In similiar way how can i delete a page,ie;
is it a valid code : $doc-&gt;delete($path); ?if not which is the code for delete an html page?can u help me?</description>
		<content:encoded><![CDATA[<p>A Part of my project code is:</p>
<p>$doc = new DOMDocument();<br />
$doc-&gt;loadHTML($news);<br />
//echo $doc-&gt;saveHTML();</p>
<p>$ext=&#8217;.html&#8217;;<br />
$page_name=$name.$ext;<br />
$path=$page_name;</p>
<p>$doc-&gt;save($path);</p>
<p>:it&#8217;s working,In similiar way how can i delete a page,ie;<br />
is it a valid code : $doc-&gt;delete($path); ?if not which is the code for delete an html page?can u help me?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

