<?xml version="1.0" encoding="iso-8859-9"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CODE PROJECT &#124; php, codeigniter, smarty, design patterns &#187; simplexml</title>
	<atom:link href="http://code.internet.com.tr/etiket/simplexml/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.internet.com.tr</link>
	<description>bir gün bir gün bir çocuk</description>
	<lastBuildDate>Sun, 31 Jan 2010 11:11:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>parse sınıfı</title>
		<link>http://code.internet.com.tr/parse-sinifi/</link>
		<comments>http://code.internet.com.tr/parse-sinifi/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 22:24:14 +0000</pubDate>
		<dc:creator>Emre Çevik</dc:creator>
				<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[proje]]></category>
		<category><![CDATA[description]]></category>
		<category><![CDATA[file_get_contents]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[parser]]></category>
		<category><![CDATA[preg_match]]></category>
		<category><![CDATA[preg_match_all]]></category>
		<category><![CDATA[resim]]></category>
		<category><![CDATA[simplexml]]></category>
		<category><![CDATA[src]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://code.internet.com.tr/?p=420</guid>
		<description><![CDATA[simplexml ile ilgili daha önce yazı yazmıştım. xml ve html yi parse edecek bir sınıf yazacağız.
bu sınıfı daha sonra geliştirip projemizde kullanacağız.
sınıfımız ne yapacak.
xml dosyasından xpath ile title, link ve description alacak.
html sayfasından title, description ve resimleri çekecek.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
&#60;?php if &#40;!defined&#40;'BASEPATH'&#41;&#41; exit&#40;'No direct script access allowed'&#41;;
&#160;
class Parse &#123;
&#160;
    var $xpath;
    [...]]]></description>
		<wfw:commentRss>http://code.internet.com.tr/parse-sinifi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>simplexml</title>
		<link>http://code.internet.com.tr/simplexml/</link>
		<comments>http://code.internet.com.tr/simplexml/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 19:23:55 +0000</pubDate>
		<dc:creator>Emre Çevik</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[proje]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[simplexml]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://code.internet.com.tr/?p=406</guid>
		<description><![CDATA[digg benzeri bir proje yapacağımız için xml kayıtlarını okuyacak bir sınıf hazırlamamız gerekli. simplexml diye bişey olduğunu biliyordum fakat onceden php5 kullanmadığım için incelememiştim.
Dün gece simplexml araştırdım bayada hoşuma gitti. Şimdi kısaca kullanımını sizlerede anlatacağım.

a.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
&#60;?xml version=&#34;1.0&#34;?&#62; 
&#60;rss&#62;
&#60;channel&#62;
&#60;item&#62; 
&#60;title&#62;php ile xml&#60;/title&#62; 
&#60;description&#62;hede hödö&#60;/description&#62; 
&#60;/item&#62; 
&#60;item&#62; 
&#60;title&#62;php ile rss&#60;/title&#62; 
&#60;description&#62;vırrık cırrık&#60;/description&#62; 
&#60;/item&#62; 
&#60;/channel&#62; 
&#60;/rss&#62;

xml dosyasını yükleyelim.

1
$xml = [...]]]></description>
		<wfw:commentRss>http://code.internet.com.tr/simplexml/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

