<?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://php4every1.com/tutorials/php-domdocument-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://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>Wed, 08 Sep 2010 19:24:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Marijan Šuflaj</title>
		<link>http://php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-5313</link>
		<dc:creator>Marijan Šuflaj</dc:creator>
		<pubDate>Tue, 03 Aug 2010 13:59:13 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-5313</guid>
		<description>@buzzknow
Not here on my site but I can do one (although if you check &lt;a href=&quot;http://php4every1.com/tutorials/php-domdocument-tutorial&quot; rel=&quot;nofollow&quot;&gt;Edit XML&lt;/a&gt; you could get some idea).

@parvez
I&#039;ve answered to you question &lt;a href=&quot;http://php4every1.com/tutorials/edit-xml/comment-page-1/#comment-5314&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>@buzzknow<br />
Not here on my site but I can do one (although if you check <a href="http://php4every1.com/tutorials/php-domdocument-tutorial" rel="nofollow">Edit XML</a> you could get some idea).</p>
<p>@parvez<br />
I&#8217;ve answered to you question <a href="http://php4every1.com/tutorials/edit-xml/comment-page-1/#comment-5314" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: parvez</title>
		<link>http://php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-5308</link>
		<dc:creator>parvez</dc:creator>
		<pubDate>Tue, 03 Aug 2010 11:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-5308</guid>
		<description>Sir,
thnx 4 this useful tutorial.
i hv a quesry..how we delete a specific node
from xml file.
example:


1
mhtkkk


2
mhtkkk


i want delete id=2 hole node.</description>
		<content:encoded><![CDATA[<p>Sir,<br />
thnx 4 this useful tutorial.<br />
i hv a quesry..how we delete a specific node<br />
from xml file.<br />
example:</p>
<p>1<br />
mhtkkk</p>
<p>2<br />
mhtkkk</p>
<p>i want delete id=2 hole node.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: buzzknow</title>
		<link>http://php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-5298</link>
		<dc:creator>buzzknow</dc:creator>
		<pubDate>Tue, 03 Aug 2010 08:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-5298</guid>
		<description>any tuts how to create XML with this class?

thanks</description>
		<content:encoded><![CDATA[<p>any tuts how to create XML with this class?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marijan Šuflaj</title>
		<link>http://php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-4725</link>
		<dc:creator>Marijan Šuflaj</dc:creator>
		<pubDate>Sun, 18 Jul 2010 17:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-4725</guid>
		<description>It seams that WP removed XML (if you placed any) so could you place encoded it.</description>
		<content:encoded><![CDATA[<p>It seams that WP removed XML (if you placed any) so could you place encoded it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Runtest</title>
		<link>http://php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-4724</link>
		<dc:creator>Runtest</dc:creator>
		<pubDate>Sun, 18 Jul 2010 17:01:55 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-4724</guid>
		<description>This was a life saver. I do have a question though, what if you have a sub element like 


  
 
  
  
  
 


And you want to get each of those topppings?</description>
		<content:encoded><![CDATA[<p>This was a life saver. I do have a question though, what if you have a sub element like </p>
<p>And you want to get each of those topppings?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajendra Mandawar</title>
		<link>http://php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-3626</link>
		<dc:creator>Rajendra Mandawar</dc:creator>
		<pubDate>Tue, 04 May 2010 16:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-3626</guid>
		<description>Add Specific Element in xml object $dom and save in XML file.

load(&#039;http://www.w3schools.com/XML/simple.xml&#039;);
$food = &#039;food&#039;;
$child = &#039;quantity&#039;; // New Element
$qty=&#039;500&#039;; // New Element value
$foodList = $dom-&gt;getElementsByTagName(&#039;food&#039;);
$foodCnt  = $foodList-&gt;length;

for ($idx = 0; $idx getElementsByTagName($food)-&gt;item($idx)-&gt;appendChild($dom-&gt;createElement($child));	
	$childNode-&gt;appendChild($dom-&gt;createTextNode($qty));
	$qty = $qty +  $idx;
}


$dom-&gt;formatOutput = true;// set the formatOutput attribute of domDocument to true
// save XML as string or file 
$test1 = $dom-&gt;saveXML();   // put string in test1 
$dom-&gt;save(&#039;sample.xml&#039;);
?&gt;

Hope it helps someone.</description>
		<content:encoded><![CDATA[<p>Add Specific Element in xml object $dom and save in XML file.</p>
<p>load(&#8216;http://www.w3schools.com/XML/simple.xml&#8217;);<br />
$food = &#8216;food&#8217;;<br />
$child = &#8216;quantity&#8217;; // New Element<br />
$qty=&#8217;500&#8242;; // New Element value<br />
$foodList = $dom-&gt;getElementsByTagName(&#8216;food&#8217;);<br />
$foodCnt  = $foodList-&gt;length;</p>
<p>for ($idx = 0; $idx getElementsByTagName($food)-&gt;item($idx)-&gt;appendChild($dom-&gt;createElement($child));<br />
	$childNode-&gt;appendChild($dom-&gt;createTextNode($qty));<br />
	$qty = $qty +  $idx;<br />
}</p>
<p>$dom-&gt;formatOutput = true;// set the formatOutput attribute of domDocument to true<br />
// save XML as string or file<br />
$test1 = $dom-&gt;saveXML();   // put string in test1<br />
$dom-&gt;save(&#8216;sample.xml&#8217;);<br />
?&gt;</p>
<p>Hope it helps someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edit XML &#124; PHP for everyone</title>
		<link>http://php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-3075</link>
		<dc:creator>Edit XML &#124; PHP for everyone</dc:creator>
		<pubDate>Wed, 07 Apr 2010 17:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-3075</guid>
		<description>[...] Now we&#8217;ll load each child element of item so we can manipulate with them. If you don&#8217;t know how to load them, check my previous tutorial about XML here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Now we&#8217;ll load each child element of item so we can manipulate with them. If you don&#8217;t know how to load them, check my previous tutorial about XML here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faisal</title>
		<link>http://php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-3063</link>
		<dc:creator>Faisal</dc:creator>
		<pubDate>Tue, 06 Apr 2010 16:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-3063</guid>
		<description>Thank you, This makes my life easier to implement a feature in my site.
I agree that the DOM classes are much more easy to use.

Thanks for the info</description>
		<content:encoded><![CDATA[<p>Thank you, This makes my life easier to implement a feature in my site.<br />
I agree that the DOM classes are much more easy to use.</p>
<p>Thanks for the info</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marijan Šuflaj</title>
		<link>http://php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-2774</link>
		<dc:creator>Marijan Šuflaj</dc:creator>
		<pubDate>Fri, 12 Mar 2010 11:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-2774</guid>
		<description>Nice wrapper :). I&#039;m having plans on creating new tutorial about using DOMDocument as database for some store software but right now don&#039;t have time. I may use it. Thanks.</description>
		<content:encoded><![CDATA[<p>Nice wrapper <img src='http://php4every1.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I&#8217;m having plans on creating new tutorial about using DOMDocument as database for some store software but right now don&#8217;t have time. I may use it. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artem Russakovskii</title>
		<link>http://php4every1.com/tutorials/php-domdocument-tutorial/comment-page-1/#comment-2773</link>
		<dc:creator>Artem Russakovskii</dc:creator>
		<pubDate>Fri, 12 Mar 2010 09:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=427#comment-2773</guid>
		<description>I&#039;ve created a wrapper around DOMDocument called SmartDOMDocument to overcome some of its shortcomings.

You can find here: http://beerpla.net/projects/smartdomdocument

Hope it helps someone.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve created a wrapper around DOMDocument called SmartDOMDocument to overcome some of its shortcomings.</p>
<p>You can find here: <a href="http://beerpla.net/projects/smartdomdocument" rel="nofollow">http://beerpla.net/projects/smartdomdocument</a></p>
<p>Hope it helps someone.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
