Salut a tous.

J'ai téléchargé sur DMOZ le fichier RDF de tout les liens qui y sont répertoriés. Ce fichier fait environ 2go, je veux en extraire les urls. J'ai donc écrit un petit programme rapide pour faire sa le code n'est pas du grand art mais bon en même temps il ne servira qu'une fois un programme poubelle en somme.

J'ai testé mon programme avec un sample du gros fichier RDF fournit par DMOZ en voici la structure:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
 
 
<?xml version='1.0' encoding='UTF-8' ?>
<RDF xmlns:r="<a href="http://www.w3.org/TR/RDF/" target="_blank">http://www.w3.org/TR/RDF/</a>"
     xmlns:d="<a href="http://purl.org/dc/elements/1.0/" target="_blank">http://purl.org/dc/elements/1.0/</a>"  
     xmlns="<a href="http://dmoz.org/rdf" target="_blank">http://dmoz.org/rdf</a>">
<!-- Generated at 2004-05-04 01:05:15 GMT on dust -->
<Topic r:id="Top">
  <catid>1</catid>
</Topic>
<ExternalPage about="">
  <topic>Top/</topic>
</ExternalPage>
<Topic r:id="Top/Arts">
  <catid>2</catid>
</Topic>
<Topic r:id="Top/Arts/Movies">
  <catid>38</catid>
</Topic>
<Topic r:id="Top/Arts/Movies/Titles">
  <catid>465672</catid>
</Topic>
<Topic r:id="Top/Arts/Movies/Titles/1">
  <catid>54803</catid>
</Topic>
<Topic r:id="Top/Arts/Movies/Titles/1/10_Rillington_Place">
  <catid>205108</catid>
  <link r:resource="<a href="http://www.britishhorrorfilms.co.uk/rillington.shtml%22/" target="_blank">http://www.britishhorrorfilms.co.uk/rillington.shtml"/</a>>
  <link r:resource="<a href="http://www.shoestring.org/mmi_revs/10-rillington-place.html%22/" target="_blank">http://www.shoestring.org/mmi_revs/10-rillington-place.html"/</a>>
  <link r:resource="<a href="http://www.tvguide.com/movies/database/ShowMovie.asp?MI=22983"/" target="_blank">http://www.tvguide.com/movies/databa...asp?MI=22983"/</a>>
  <link r:resource="<a href="http://us.imdb.com/title/tt0066730/%22/" target="_blank">http://us.imdb.com/title/tt0066730/"/</a>>
</Topic>
<ExternalPage about="<a href="http://www.britishhorrorfilms.co.uk/rillington.shtml" target="_blank">http://www.britishhorrorfilms.co.uk/rillington.shtml</a>">
  <d:Title>British Horror Films: 10 Rillington Place</d:Title>
  <d:Description>Review which looks at plot especially the shocking features of it.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/10_Rillington_Place</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.shoestring.org/mmi_revs/10-rillington-place.html" target="_blank">http://www.shoestring.org/mmi_revs/1...ton-place.html</a>">
  <d:Title>MMI Movie Review: 10 Rillington Place</d:Title>
  <d:Description>Review includes plot, real life story behind the film and realism in the film.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/10_Rillington_Place</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.tvguide.com/movies/database/ShowMovie.asp?MI=22983" target="_blank">http://www.tvguide.com/movies/databa...e.asp?MI=22983</a>">
  <d:Title>TV Guide Online: 10 Rillington Place</d:Title>
  <d:Description>Review and credits.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/10_Rillington_Place</topic>
</ExternalPage>
<ExternalPage about="<a href="http://us.imdb.com/title/tt0066730/" target="_blank">http://us.imdb.com/title/tt0066730/</a>">
  <d:Title>IMDb : 10 Rillington Place (1971)</d:Title>
  <d:Description>Full cast and crew for the film, and other information from the Internet Movie Database.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/10_Rillington_Place</topic>
</ExternalPage>
<Topic r:id="Top/Arts/Movies/Titles/1/1984_-_1984">
  <catid>460423</catid>
  <link r:resource="<a href="http://www.geocities.com/aaronbcaldwell/1984.html%22/" target="_blank">http://www.geocities.com/aaronbcaldwell/1984.html"/</a>>
  <link r:resource="<a href="http://orwell.ru/a_life/movies/m84_01.htm%22/" target="_blank">http://orwell.ru/a_life/movies/m84_01.htm"/</a>>
  <link r:resource="<a href="http://www.britmovie.co.uk/genres/fiction/filmography/014.html%22/" target="_blank">http://www.britmovie.co.uk/genres/fiction/filmography/014.html"/</a>>
  <link r:resource="<a href="http://adrianmco.batcave.net/1984.htm%22/" target="_blank">http://adrianmco.batcave.net/1984.htm"/</a>>
  <link r:resource="<a href="http://www.filmtracks.com/titles/1984.html%22/" target="_blank">http://www.filmtracks.com/titles/1984.html"/</a>>
  <link r:resource="<a href="http://us.imdb.com/title/tt0087803/%22/" target="_blank">http://us.imdb.com/title/tt0087803/"/</a>>
</Topic>
<ExternalPage about="<a href="http://www.geocities.com/aaronbcaldwell/1984.html" target="_blank">http://www.geocities.com/aaronbcaldwell/1984.html</a>">
  <d:Title>Top 100 Movie Lists: 1984</d:Title>
  <d:Description>Photos, sounds [Real Audio], and a review.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/1984_-_1984</topic>
</ExternalPage>
<ExternalPage about="<a href="http://orwell.ru/a_life/movies/m84_01.htm" target="_blank">http://orwell.ru/a_life/movies/m84_01.htm</a>">
  <d:Title>George Orwell's Movies - 1984</d:Title>
  <d:Description>Review.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/1984_-_1984</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.britmovie.co.uk/genres/fiction/filmography/014.html" target="_blank">http://www.britmovie.co.uk/genres/fi...raphy/014.html</a>">
  <d:Title>Britmovie: Nineteen Eighty-Four</d:Title>
  <d:Description>Synopsis, and cast and crew links.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/1984_-_1984</topic>
</ExternalPage>
<ExternalPage about="<a href="http://adrianmco.batcave.net/1984.htm" target="_blank">http://adrianmco.batcave.net/1984.htm</a>">
  <d:Title>Batcave: Nineteen Eighty-Four</d:Title>
  <d:Description>Review.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/1984_-_1984</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.filmtracks.com/titles/1984.html" target="_blank">http://www.filmtracks.com/titles/1984.html</a>">
  <d:Title>Filmtracks: 1984</d:Title>
  <d:Description>Soundtrack review, audio clips, and ratings.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/1984_-_1984</topic>
</ExternalPage>
<ExternalPage about="<a href="http://us.imdb.com/title/tt0087803/" target="_blank">http://us.imdb.com/title/tt0087803/</a>">
  <d:Title>IMDb: Nineteen Eighty-Four (1984)</d:Title>
  <d:Description>Full cast and crew for the film, synopsis, awards information, trivia, user comments, and related links.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/1984_-_1984</topic>
</ExternalPage>
<Topic r:id="Top/Arts/Movies/Titles/1/187">
  <catid>97826</catid>
  <link1 r:resource="<a href="http://www.wbmovies.com/187/%22/" target="_blank">http://www.wbmovies.com/187/"/</a>>
  <link r:resource="<a href="http://www.movieweb.com/movie/187/index.html%22/" target="_blank">http://www.movieweb.com/movie/187/index.html"/</a>>
  <link r:resource="<a href="http://www.filmscouts.com/scripts/film.cfm?film=187"/" target="_blank">http://www.filmscouts.com/scripts/film.cfm?film=187"/</a>>
  <link r:resource="<a href="http://www.tvguide.com/movies/database/ShowMovie.asp?MI=38994"/" target="_blank">http://www.tvguide.com/movies/databa...asp?MI=38994"/</a>>
  <link r:resource="<a href="http://www.mrqe.com/lookup?187"/" target="_blank">http://www.mrqe.com/lookup?187"/</a>>
  <link r:resource="<a href="http://us.imdb.com/title/tt0118531/%22/" target="_blank">http://us.imdb.com/title/tt0118531/"/</a>>
</Topic>
<ExternalPage about="<a href="http://www.wbmovies.com/187/" target="_blank">http://www.wbmovies.com/187/</a>">
  <d:Title>187</d:Title>
  <d:Description>Official site. Includes synopsis, trailer, cast biographies, background information, reviews, production notes, and related links.</d:Description>
  <priority>1</priority>
  <topic>Top/Arts/Movies/Titles/1/187</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.movieweb.com/movie/187/index.html" target="_blank">http://www.movieweb.com/movie/187/index.html</a>">
  <d:Title>MovieWeb: 187</d:Title>
  <d:Description>Synopsis, statistics on school violence, production information, and still photographs.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/187</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.filmscouts.com/scripts/film.cfm?film=187" target="_blank">http://www.filmscouts.com/scripts/film.cfm?film=187</a>">
  <d:Title>FilmScouts: 187</d:Title>
  <d:Description>Production information, synopsis, filmmaker and cast biographies, and video clips.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/187</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.tvguide.com/movies/database/ShowMovie.asp?MI=38994" target="_blank">http://www.tvguide.com/movies/databa...e.asp?MI=38994</a>">
  <d:Title>Cinebooks Database - When Bad Kids Happen to Good Teachers</d:Title>
  <d:Description>Review by Maitland McDonagh (predominantly negative), rating.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/187</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.mrqe.com/lookup?187" target="_blank">http://www.mrqe.com/lookup?187</a>">
  <d:Title>MRQE: One Eight Seven</d:Title>
  <d:Description>Links to over 50 reviews of the film.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/187</topic>
</ExternalPage>
<ExternalPage about="<a href="http://us.imdb.com/title/tt0118531/" target="_blank">http://us.imdb.com/title/tt0118531/</a>">
  <d:Title>IMDb: One Eight Seven</d:Title>
  <d:Description>Includes user ratings and comments, taglines, plot outline, cast and credits.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/187</topic>
</ExternalPage>
<Topic r:id="Top/Arts/Movies/Titles/1/187/Cast_and_Crew">
  <catid>541379</catid>
</Topic>
<Topic r:id="Top/Arts/Movies/Titles/1/15_Minutes">
  <catid>97825</catid>
  <link r:resource="<a href="http://www.falsegods.com/15min/15min.html%22/" target="_blank">http://www.falsegods.com/15min/15min.html"/</a>>
</Topic>
<ExternalPage about="<a href="http://www.falsegods.com/15min/15min.html" target="_blank">http://www.falsegods.com/15min/15min.html</a>">
  <d:Title>15 Minutes</d:Title>
  <d:Description>Description of a documentary about an art theft as art. Asks for donations to complete the production.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/15_Minutes</topic>
</ExternalPage>
<Topic r:id="Top/Arts/Movies/Titles/1/12_Monkeys">
  <catid>97822</catid>
  <link r:resource="<a href="http://www.geocities.com/Hollywood/Boulevard/8928/%22/" target="_blank">http://www.geocities.com/Hollywood/Boulevard/8928/"/</a>>
  <link1 r:resource="<a href="http://www.scifi.sk/12Monkeys/faq.html%22/" target="_blank">http://www.scifi.sk/12Monkeys/faq.html"/</a>>
  <link r:resource="<a href="http://www.smart.co.uk/dreams/monkfact.htm%22/" target="_blank">http://www.smart.co.uk/dreams/monkfact.htm"/</a>>
  <link r:resource="<a href="http://www.geocities.com/Area51/Rampart/6040/monkeys.html%22/" target="_blank">http://www.geocities.com/Area51/Rampart/6040/monkeys.html"/</a>>
  <link r:resource="<a href="http://www.generationterrorists.com/quotes/12_monkeys.html%22/" target="_blank">http://www.generationterrorists.com/quotes/12_monkeys.html"/</a>>
  <link r:resource="<a href="http://members.tripod.com/~bucephalus/index2.html%22/" target="_blank">http://members.tripod.com/~bucephalus/index2.html"/</a>>
  <link r:resource="<a href="http://www.allscifi.com/Topics/Info_4346.asp%22/" target="_blank">http://www.allscifi.com/Topics/Info_4346.asp"/</a>>
  <link r:resource="<a href="http://members.tripod.com/Lenninthezanybee/frames.htm%22/" target="_blank">http://members.tripod.com/Lenninthezanybee/frames.htm"/</a>>
  <link r:resource="<a href="http://www.hollywoodjesus.com/12monkey.htm%22/" target="_blank">http://www.hollywoodjesus.com/12monkey.htm"/</a>>
  <link r:resource="<a href="http://www.dailyscript.com/scripts/twelve_monkeys.html%22/" target="_blank">http://www.dailyscript.com/scripts/twelve_monkeys.html"/</a>>
  <link r:resource="<a href="http://us.imdb.com/title/tt0114746/%22/" target="_blank">http://us.imdb.com/title/tt0114746/"/</a>>
</Topic>
<ExternalPage about="<a href="http://www.geocities.com/Hollywood/Boulevard/8928/" target="_blank">http://www.geocities.com/Hollywood/Boulevard/8928/</a>">
  <d:Title>12 Monkeys Things</d:Title>
  <d:Description>Selected media clips from the film and compiled links.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.scifi.sk/12Monkeys/faq.html" target="_blank">http://www.scifi.sk/12Monkeys/faq.html</a>">
  <d:Title>12 Monkeys FAQ</d:Title>
  <d:Description>Comprehensive list of plot questions, with detailed answers.</d:Description>
  <priority>1</priority>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.smart.co.uk/dreams/monkfact.htm" target="_blank">http://www.smart.co.uk/dreams/monkfact.htm</a>">
  <d:Title>12 Monkeys: Dreams Facts</d:Title>
  <d:Description>A detailed introduction and collected interviews.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.geocities.com/Area51/Rampart/6040/monkeys.html" target="_blank">http://www.geocities.com/Area51/Ramp...0/monkeys.html</a>">
  <d:Title>12 Monkeys: Time Travel</d:Title>
  <d:Description>Detailed analysis of the time travel used in 12 Monkeys.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.generationterrorists.com/quotes/12_monkeys.html" target="_blank">http://www.generationterrorists.com/...2_monkeys.html</a>">
  <d:Title>12 Monkeys Quotes</d:Title>
  <d:Description>Selected quotations from the film.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<ExternalPage about="<a href="http://members.tripod.com/~bucephalus/index2.html" target="_blank">http://members.tripod.com/~bucephalus/index2.html</a>">
  <d:Title>Comprehensive Guide to 12 Monkeys</d:Title>
  <d:Description>Includes cast and crew information, and an online edition of the film's script, by David and Janet Peoples.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.allscifi.com/Topics/Info_4346.asp" target="_blank">http://www.allscifi.com/Topics/Info_4346.asp</a>">
  <d:Title>Allscifi Review - 12 Monkeys</d:Title>
  <d:Description>Analytical review of the plot, setting, theme, and structure of the Bruce Willis film, and links to similar movies.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<ExternalPage about="<a href="http://members.tripod.com/Lenninthezanybee/frames.htm" target="_blank">http://members.tripod.com/Lenninthezanybee/frames.htm</a>">
  <d:Title>Headquarters of the Twelve Monkeys</d:Title>
  <d:Description>Site includes production notes, sound clips, trivia and film merchandise information.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.hollywoodjesus.com/12monkey.htm" target="_blank">http://www.hollywoodjesus.com/12monkey.htm</a>">
  <d:Title>Hollywood Jesus: 12 Monkeys</d:Title>
  <d:Description>Visual film analysis linking and explaining Biblical themes in the movie.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.dailyscript.com/scripts/twelve_monkeys.html" target="_blank">http://www.dailyscript.com/scripts/twelve_monkeys.html</a>">
  <d:Title>The Daily Script - 12 Monkeys</d:Title>
  <d:Description>Original screenplay by David and Janet Peoples.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<ExternalPage about="<a href="http://us.imdb.com/title/tt0114746/" target="_blank">http://us.imdb.com/title/tt0114746/</a>">
  <d:Title>IMDb:  12 Monkeys</d:Title>
  <d:Description>Film cast and crew information.  Includes comments submitted by users.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/12_Monkeys</topic>
</ExternalPage>
<Topic r:id="Top/Arts/Movies/Titles/1/12_Monkeys/Cast_and_Crew">
  <catid>541396</catid>
</Topic>
<Topic r:id="Top/Arts/Movies/Titles/1/13th_Warrior,_The">
  <catid>54809</catid>
  <link r:resource="<a href="http://www.geocities.com/darkdaze18/%22/" target="_blank">http://www.geocities.com/darkdaze18/"/</a>>
  <link r:resource="<a href="http://apolloguide.com/mov_revtemp.asp?Title=13th+Warrior,+The"/" target="_blank">http://apolloguide.com/mov_revtemp.a...Warrior,+The"/</a>>
  <link r:resource="<a href="http://www.boxofficemojo.com/13thwarrior.html%22/" target="_blank">http://www.boxofficemojo.com/13thwarrior.html"/</a>>
  <link r:resource="<a href="http://movie-reviews.colossus.net/movies/t/13th_warrior.html%22/" target="_blank">http://movie-reviews.colossus.net/movies/t/13th_warrior.html"/</a>>
  <link r:resource="<a href="http://ter.air0day.com/13thwarrior.shtml%22/" target="_blank">http://ter.air0day.com/13thwarrior.shtml"/</a>>
  <link r:resource="<a href="http://www.metacritic.com/video/titles/13thwarrior%22/" target="_blank">http://www.metacritic.com/video/titles/13thwarrior"/</a>>
  <link r:resource="<a href="http://us.imdb.com/title/tt0120657/%22/" target="_blank">http://us.imdb.com/title/tt0120657/"/</a>>
</Topic>
<ExternalPage about="<a href="http://www.geocities.com/darkdaze18/" target="_blank">http://www.geocities.com/darkdaze18/</a>">
  <d:Title>The 13th Warrior Domain</d:Title>
  <d:Description>Fan site, includes a review, video and sound clips, and photographs.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The</topic>
</ExternalPage>
<ExternalPage about="<a href="http://apolloguide.com/mov_revtemp.asp?Title=13th+Warrior,+The" target="_blank">http://apolloguide.com/mov_revtemp.a...h+Warrior,+The</a>">
  <d:Title>Apollo Leisure Guide</d:Title>
  <d:Description>Includes a review, cast list, and links.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.boxofficemojo.com/13thwarrior.html" target="_blank">http://www.boxofficemojo.com/13thwarrior.html</a>">
  <d:Title>Box Office Mojo</d:Title>
  <d:Description>Box office data for The 13th Warrior since day one. Includes Antonio Banderas' box office track record.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The</topic>
</ExternalPage>
<ExternalPage about="<a href="http://movie-reviews.colossus.net/movies/t/13th_warrior.html" target="_blank">http://movie-reviews.colossus.net/mo...h_warrior.html</a>">
  <d:Title>ReelView Review: The 13th Warrior</d:Title>
  <d:Description>Contains a review, cast list, and release information.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The</topic>
</ExternalPage>
<ExternalPage about="<a href="http://ter.air0day.com/13thwarrior.shtml" target="_blank">http://ter.air0day.com/13thwarrior.shtml</a>">
  <d:Title>The Editing Room</d:Title>
  <d:Description>A short parody script.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.metacritic.com/video/titles/13thwarrior" target="_blank">http://www.metacritic.com/video/titles/13thwarrior</a>">
  <d:Title>Metacritic.com</d:Title>
  <d:Description>Links to reviews on other sites.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The</topic>
</ExternalPage>
<ExternalPage about="<a href="http://us.imdb.com/title/tt0120657/" target="_blank">http://us.imdb.com/title/tt0120657/</a>">
  <d:Title>IMDb - The 13th Warrior (1999)</d:Title>
  <d:Description>Cast/credits plus additional information about the film</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The</topic>
</ExternalPage>
<Topic r:id="Top/Arts/Movies/Titles/1/13th_Warrior,_The/Cast_and_Crew">
  <catid>541518</catid>
</Topic>
<Topic r:id="Top/Arts/Movies/Titles/1/13th_Warrior,_The/Reviews">
  <catid>558978</catid>
  <link r:resource="<a href="http://www.all-reviews.com/videos/thirteenth-warrior.htm%22/" target="_blank">http://www.all-reviews.com/videos/thirteenth-warrior.htm"/</a>>
  <link r:resource="<a href="http://www.haro-online.com/movies/13th_warrior.html%22/" target="_blank">http://www.haro-online.com/movies/13th_warrior.html"/</a>>
  <link r:resource="<a href="http://www.rottentomatoes.com/movie-1091574/%22/" target="_blank">http://www.rottentomatoes.com/movie-1091574/"/</a>>
  <link r:resource="<a href="http://upcomingmovies.com/13thwarrior.html%22/" target="_blank">http://upcomingmovies.com/13thwarrior.html"/</a>>
  <link r:resource="<a href="http://www.brunching.com/selfmade/selfmade-thirteenthwarrior.html%22/" target="_blank">http://www.brunching.com/selfmade/selfmade-thirteenthwarrior.html"/</a>>
  <link r:resource="<a href="http://www.filmtracks.com/titles/13th_warrior.html%22/" target="_blank">http://www.filmtracks.com/titles/13th_warrior.html"/</a>>
</Topic>
<ExternalPage about="<a href="http://www.all-reviews.com/videos/thirteenth-warrior.htm" target="_blank">http://www.all-reviews.com/videos/th...th-warrior.htm</a>">
  <d:Title>All-Reviews.com  - 13th Warrior</d:Title>
  <d:Description>Compiled review</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The/Reviews</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.haro-online.com/movies/13th_warrior.html" target="_blank">http://www.haro-online.com/movies/13th_warrior.html</a>">
  <d:Title>HARO Online - The 13th Warrior</d:Title>
  <d:Description>A review of the film by Haro.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The/Reviews</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.rottentomatoes.com/movie-1091574/" target="_blank">http://www.rottentomatoes.com/movie-1091574/</a>">
  <d:Title>Rotten Tomatoes</d:Title>
  <d:Description>Links to reviews.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The/Reviews</topic>
</ExternalPage>
<ExternalPage about="<a href="http://upcomingmovies.com/13thwarrior.html" target="_blank">http://upcomingmovies.com/13thwarrior.html</a>">
  <d:Title>Upcomingmovies.com: The 13th Warrior</d:Title>
  <d:Description>Preview and review of the film</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The/Reviews</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.brunching.com/selfmade/selfmade-thirteenthwarrior.html" target="_blank">http://www.brunching.com/selfmade/se...thwarrior.html</a>">
  <d:Title>Brunching Shuttlecocks: The 13th Warrior</d:Title>
  <d:Description>Review by the Self-Made Critic.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The/Reviews</topic>
</ExternalPage>
<ExternalPage about="<a href="http://www.filmtracks.com/titles/13th_warrior.html" target="_blank">http://www.filmtracks.com/titles/13th_warrior.html</a>">
  <d:Title>Filmtracks: The 13th Warrior</d:Title>
  <d:Description>Soundtrack review, audio clips, and ratings.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/13th_Warrior,_The/Reviews</topic>
</ExternalPage>
<Topic r:id="Top/Arts/Movies/Titles/1/100_Girls">
  <catid>769088</catid>
  <link r:resource="<a href="http://www.100girls.net/%22/" target="_blank">http://www.100girls.net/"/</a>>
  <link r:resource="<a href="http://imdb.com/title/tt0214388/%22/" target="_blank">http://imdb.com/title/tt0214388/"/</a>>
</Topic>
<ExternalPage about="<a href="http://www.100girls.net/" target="_blank">http://www.100girls.net/</a>">
  <d:Title>100 Girls Official Website</d:Title>
  <d:Description>From Lions Gate Productions.  Contains cast and crew overview, production details, and news.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/100_Girls</topic>
</ExternalPage>
<ExternalPage about="<a href="http://imdb.com/title/tt0214388/" target="_blank">http://imdb.com/title/tt0214388/</a>">
  <d:Title>IMDb: 100 Girls (2000)</d:Title>
  <d:Description>Cast, crew, reviews, plot summary and related links.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/100_Girls</topic>
</ExternalPage>
<Topic r:id="Top/Arts/Movies/Titles/1/100_Pigmies_and_Andy_Panda">
  <catid>205115</catid>
  <link r:resource="<a href="http://us.imdb.com/title/tt0146394/%22/" target="_blank">http://us.imdb.com/title/tt0146394/"/</a>>
</Topic>
<ExternalPage about="<a href="http://us.imdb.com/title/tt0146394/" target="_blank">http://us.imdb.com/title/tt0146394/</a>">
  <d:Title>IMDb : 100 Pigmies and Andy Panda (1940)</d:Title>
  <d:Description>Full cast and crew for the film, and other information from the Internet Movie Database.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/100_Pigmies_and_Andy_Panda</topic>
</ExternalPage>
<Topic r:id="Top/Arts/Movies/Titles/1/10_to_Midnight">
  <catid>205113</catid>
  <link r:resource="<a href="http://us.imdb.com/title/tt0085121/%22/" target="_blank">http://us.imdb.com/title/tt0085121/"/</a>>
</Topic>
<ExternalPage about="<a href="http://us.imdb.com/title/tt0085121/" target="_blank">http://us.imdb.com/title/tt0085121/</a>">
  <d:Title>IMDb : 10 to Midnight (1983)</d:Title>
  <d:Description>Full cast and crew for the film, and other information from the Internet Movie Database.</d:Description>
  <topic>Top/Arts/Movies/Titles/1/10_to_Midnight</topic>
</ExternalPage>
</RDF>

voici mon petit programme :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
 
 
static IEnumerable Parse()
{
XmlDocument xDoc = new XmlDocument();
xDoc.Load(File.Open(@"F:\Visual Studio 2008\Projects\content.rdf.u8.xml", FileMode.Open, FileAccess.Read, FileShare.None));
XmlNodeList n = xDoc.GetElementsByTagName("ExternalPage");
foreach (XmlNode e in n)
{
XmlAttributeCollection x = e.Attributes;
if (x.Count > 0)
{
foreach (XmlAttribute a in x)
{
yield return a.Value;
}
}
}
n = xDoc.GetElementsByTagName("Topic/link", "r:resource");
foreach (XmlNode e in n)
{
yield return e.InnerText;
}
}
 
 
static void Main(string[] args)
{
using (StreamWriter s = new StreamWriter(@"F:\Visual Studio 2008\Projects\launchbatch.txt", true, Encoding.UTF8, 1024))
{
foreach (IEnumerable e in Parse())
{
try
{
string temp = e.ToString();
s.WriteLine(temp);
}
catch
{
}
}
s.Close();
}
rien de spécial ce n'est pas forcément très beau mais sa remplis sont office.

Vous me direz quel est le problème alors !!!

Bah en fait le problème vient du chargement du fichier XML le .net framework essaie de charger tout le fichier XML en mémoire quand je fais
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
xDoc.Load(File.Open(@"F:\Visual Studio 2008\Projects\content.rdf.u8.xml", FileMode.Open, FileAccess.Read, FileShare.None));
sa me pose un problème car étant sous un os 32bit (vista), le programme plante car il ne peut pas allouer suffisament de mémoire .

Aussi je voudrais savoir si il y a un moyen pour lire le fichier petit à petit mais le problème que je vois c'est mes requetes XPATH ne fonctionnerons plus .


En bref je cherche des idées parceque je suis à cours.

Merci!

NB: Truc qui n'a rien à voir je suis impressioné par vista, sous xp meme w2k3 l'os plante parce qu'il souffre , les fenetres se bloque etc... vista rien de tout cela il devient lent certe mais il reste toujours super stable. enfin bref