Question How to split Wordpress WXR XML file into multiple files based on element count.

rexcarnation

Member
Joined
Feb 12, 2014
Messages
8
Location
Indonesia
Programming Experience
Beginner
Hello, I'm new on xml,
I have one problem when i split the wordpress WXR.
I try to using XML Document Splitter Class here :
XML Document Splitter Class - CodeProject

but nothing can do.
Please help meee.

my example xml is:

VB.NET:
<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0' xmlns:excerpt='http://wordpress.org/export/1.2/excerpt/' 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:wp='http://wordpress.org/export/1.2/'>
<channel>
<link>http://windi.manjaddawajadda.info</link>
<pubDate>2014-03-14T07:29:27Z</pubDate>
<language>en-US</language>
<wp:wxr_version>1.2</wp:wxr_version>
<wp:base_site_url>http://windi.manjaddawajadda.info</wp:base_site_url>
<wp:base_blog_url>http://windi.manjaddawajadda.info</wp:base_blog_url>
<wp:author>
<wp:author_id>1</wp:author_id>
<wp:author_display_name>admin</wp:author_display_name>
<wp:author_first_name></wp:author_first_name>
<wp:author_last_name></wp:author_last_name>
</wp:author>
<generator>http://wordpress.org/?v=3.7</generator>

<item>
<category domain="category" nicename="action">Action</category>
<category domain="category" nicename="war">War</category>
<title>Free Watch 300: Rise of an Empire (2014) Online Streaming</title>
<link>http://windi.manjaddawajadda.info/?p=1</link>
<pubDate>2014-03-14T08:41:25Z</pubDate>
<guid isPermaLink="false">http://windi.manjaddawajadda.info/?p=1</guid>
<content:encoded><h2>300: Rise of an Empire Online Streaming</h2><div><div style="float:left; padding-right:10px; padding-bottom:10px;"><img src="http://image.tmdb.org/t/p/w185/d4kPMHsoTEH3FIkBDJM0uVOlas6.jpg" /></div><b>Storyline 300: Rise of an Empire</b><br />After its victory over Leonidas' 300, the Persian Army under the command of Xerxes marches south towards the major Greek city-states. The Democratic city of Athens, first on the path of Xerxes' army, bases its strength on its fleet, led by admiral Themistocles. Themistocles is forced to an unwilling alliance with the traditional rival of Athens, oligarchic Sparta whose might lies with its superior infantry troops. But Xerxes still reigns supreme in numbers over sea and land<br /><br /><br /></div><br /><div style="clear:both;"></div><div style="text-align:center"><img src="http://image.tmdb.org/t/p/w780/aJ1XDKemo7f6NHAcRFwvsuz6st6.jpg" /></div><div style="clear:both;"></div><h3>Movie details 300: Rise of an Empire</h3>Release : 2014-03-07<br />Genre : Action, War<br />Runtime : 102 minutes<br />Company : Atmosphere Entertainment MM, Cruel & Unusual Films, Hollywood Gang Productions<br /><div style="clear:both;"></div><h3>Cast</h3><table><tbody><tr><td><img src="http://image.tmdb.org/t/p/w45/jbtXSbo8uqBTn8Nx2Z1fULTQlAz.jpg" /></td><td>Sullivan Stapleton</td><td>as</td><td>Themistocles</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/yooMG1JAXx7rXCs0b71Cbb8u2Aq.jpg" /></td><td>Eva Green</td><td>as</td><td>Artemisia</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/6BZiPycIueJ3t0iEozWCbUZleuj.jpg" /></td><td>Lena Headey</td><td>as</td><td>Queen Gorgo</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/hZ7qJSzpsAek0b6Nj5JkmUVoEdT.jpg" /></td><td>Callan Mulvey</td><td>as</td><td>Scylias</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/hOG5mAd5pzT30V6adkwkpe87HY7.jpg" /></td><td>David Wenham</td><td>as</td><td>Dillios</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/gIbqgmlC9xuWlYjT0cYI1iHRPC1.jpg" /></td><td>Rodrigo Santoro</td><td>as</td><td>Xerxes</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/uUHQsDlpHyU4PWQ7pesDFTQ2ldz.jpg" /></td><td>Jack O'Connell</td><td>as</td><td>Calisto</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/3ONS6tD3RudS8l3i69rZJtE4p2w.jpg" /></td><td>Andrew Tiernan</td><td>as</td><td>Ephialtes</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/oqu4Ra8jfKvKoeOtVZiWoNvfvji.jpg" /></td><td>Ashraf Barhom</td><td>as</td><td>General Bandari</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/tiMLyqTDBx0TgfQKlLHObr9eGyG.jpg" /></td><td>Andrew Pleavin</td><td>as</td><td>Daxos</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/4MQAI6g3AabzUDm29UbadjjWteL.jpg" /></td><td>Hans Matheson</td><td>as</td><td>Aesyklos</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/ajdlNDlUC1NHythgdYk0dGGHNQX.jpg" /></td><td>Igal Naor</td><td>as</td><td>King Darius</td></tr></tbody></table><br /><div style="clear:both;"></div><div style="text-align:center;"><object width="420" height="345"><param name="movie" value="https://www.youtube.com/v/dHpCmBHUTro?version=3&autoplay=0" /><param name="allowScriptAccess" value="always" /><embed src="https://www.youtube.com/v/dHpCmBHUTro?version=3&autoplay=0" type="application/x-shockwave-flash" allowscriptaccess="always" width="420" height="345" /></object></div><div style="clear:both;"></div><h3>Available Posters</h3><div style="text-align:center;"><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/d4kPMHsoTEH3FIkBDJM0uVOlas6.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/hrOMW22FV86te7uLyRnp3Z6Nv6e.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/bRE7nmNuZzciep7MDkNfuTrM9zW.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/gWQf5j3ZqEfOdW2rIZnkuOOva78.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/BvaD5kZKPjigE5yyeaTUFdYUIj.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/oT7YAtn8dPYlTWAEVpPTf3PRpNy.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/r7CtZ4CP6cCOScCPwTWzfifJWeE.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/ffgZS8zquXYOroDzmWEP3YnQ1A8.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/sKaKf6SP9oomVC7mgU9yNrJ6pEV.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/nPIOE8WJNr4BCRT3OIkRXLUvhcX.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/vFjBnpMZPRmvzVCIvX3GSMOESFh.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/5xtwwtK5OKiPfURW1jwM0guy5JH.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/4wFo9vYWy9S1Nrh1jBKCp6l8XbS.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/4dqFTr7rn83rVTr39OKt8D3UtRQ.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/paFWX4IXlWbg96tVn5vYgRTdHUf.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/2iD2RrVGV7T8GROyIvKB7tMq1XZ.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/unPjbbc8Xf4wVxBpORUfK23uVjQ.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/7iwGYeuYhSyjxZTh9Z2PkJ4V5Iq.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/qFrIN50NFJOCf68cUt7wCUFJHle.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/gXDtTjhqmvJA5DohuthqNofydqa.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/hCdfID1N606mOverD8gEeSpvJpQ.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/tBhYb03HMyFLhdEtyjVA3CWuKUz.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/4OcdZJJX9eIsdKAVEgqAa6dXzE3.jpg" /></div><br /><div style="clear:both;"></div><h3>Some Reviews</h3><br /><div style="clear:both;"></div><div><h4 style="margin-bottom: 10px;">Search Result :</h4><div><div><b>300: RISE OF AN EMPIRE - Movie Trailer, Photos, Synopsis</b><br />300: RISE OF AN EMPIRE, A new chapter of the epic saga takes the action to a fresh - battlefield - on the sea - starring Sullivan Stapleton, Eva Green, Lena Headey ...</div><div><b>300: Rise of an Empire (2014) - IMDb</b><br />Directed by Noam Murro. With Sullivan Stapleton, Eva Green, Lena Headey, Hans Matheson. Greek general Themistokles leads the charge against invading Persian forces ...</div><div><b>300: Rise of an Empire - Wikipedia, the free encyclopedia</b><br />300: Rise of an Empire is a 2014 American action film directed by Noam Murro. It is a follow-up to the 2007 film 300, taking place before, during, and after the ...</div><div><b>300: Rise of an Empire - Rotten Tomatoes</b><br />Based on Frank Miller's latest graphic novel Xerxes and told in the breathtaking visual style of the blockbuster "300," this new chapter of the epic saga takes the ...</div><div><b>300: Rise of an Empire (2014) Movie Tickets, Reviews, and ...</b><br />Get the 300: Rise of an Empire (2014) plot, movie times, movie trailers, movie tickets, cast photos, and more on Fandango.com.</div><div><b>300: Rise of an Empire | Trailer and Cast - Yahoo Movies</b><br />2014 Oscar Predictions: Our Picks in Every Category. Yahoo Movies experts Thelma Adams and Kevin Polowy have updated their Oscar predictions throughout all of awards ...</div><div><b>300: Rise of an Empire - Official Trailer 1 [HD] - YouTube</b><br />https://www.facebook.com/300Movie http://www.300themovie.com/ In theaters March 2014. Based on Frank Miller's latest graphic novel Xerxes, and told in the ...</div><div><b>300: Rise of an Empire - Movie Trailers - iTunes</b><br />Director Noam Murro Writers Zack Snyder, Kurt Johstad Actors Sullivan Stapleton, Eva Green, Lena Headey, Hans Matheson, Rodrigo Santoro, David Wenham, Igal ...</div><div><b>300: Rise of An Empire (2014) Movie</b><br />300: Rise of An Empire in US theaters March 7, 2014 starring Eva Green, Jamie Blackley, Sullivan Stapleton, Rodrigo Santoro. This new chapter of the epic saga takes ...</div><div><b>300: Rise of an Empire (2014) - Movie Trailers - Fandango.com</b><br />300: Rise of an Empire; R | Runtime: 1 hr 43 min Information for parents: Common Sense Media says Pause for kids 16 & under. Read More ...</div></div><div style="clear:both;"></div></div></content:encoded>
<wp:post_id>1</wp:post_id>
<wp:post_date>2014-03-14 08:41:25</wp:post_date>
<wp:post_date_gmt>2014-03-14 08:41:25</wp:post_date_gmt>
<wp:comment_status>closed</wp:comment_status>
<wp:ping_status>open</wp:ping_status>
<wp:status>publish</wp:status>
<wp:post_type>post</wp:post_type>
</item>

<item>
<category domain="category" nicename="action">Action</category>
<category domain="category" nicename="adventure">Adventure</category>
<category domain="category" nicename="science_fiction">Science Fiction</category>
<title>Get Free Transformers: Age of Extinction (2014) Online Streaming</title>
<link>http://windi.manjaddawajadda.info/?p=2</link>
<pubDate>2014-03-14T03:33:45Z</pubDate>
<guid isPermaLink="false">http://windi.manjaddawajadda.info/?p=2</guid>
<content:encoded><h2>Transformers: Age of Extinction Online Streaming</h2><div><div style="float:left; padding-right:10px; padding-bottom:10px;"><img src="http://image.tmdb.org/t/p/w185/gKmSQyzsysqXFkeOuzsW7Q31OHa.jpg" /></div><b>Storyline Transformers: Age of Extinction</b><br />Fourth part of the Transformers series, which starts a new main characters changing history.<br /><br /><br /></div><br /><div style="clear:both;"></div><div style="text-align:center"><img src="http://image.tmdb.org/t/p/w780/kHqhNH7OvCXhagug4ed0ETasBWC.jpg" /></div><div style="clear:both;"></div><h3>Movie details Transformers: Age of Extinction</h3>Release : 2014-06-27<br />Genre : Action, Adventure, Science Fiction<br />Runtime : 120 minutes<br />Company : <br /><div style="clear:both;"></div><h3>Cast</h3><table><tbody><tr><td><img src="http://image.tmdb.org/t/p/w45/ywS7lEeN6kbZCOUH3U2Rxiw1DFc.jpg" /></td><td>Nicola Peltz</td><td>as</td><td>Tessa Yeager</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/eGHgl0sRg0ecKuAiHKehPUnY1lL.jpg" /></td><td>Mark Wahlberg</td><td>as</td><td>Cade Yeager</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/omGlTJF2IW5r3L3c5y0qkCt3hFr.jpg" /></td><td>Stanley Tucci</td><td>as</td><td>Joshua</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/a3QPvpgqKMGViS2M9mGcRy7xDZ.jpg" /></td><td>Frank Welker</td><td>as</td><td>Trypticon (voice)</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/fvRncqShcaV8R45IJGYZ7IAvrsO.jpg" /></td><td>Miguel Ferrer</td><td>as</td><td>Scourge (voice)</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/eAwMDGN99JAjbkDY2KkH0e00Hct.jpg" /></td><td>Jeffrey Combs</td><td>as</td><td>Powerglide (voice)</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/bsh3cqDNwVvux4NdaY1Bj4S7mNS.jpg" /></td><td>Mark Rolston</td><td>as</td><td>Thrust (voice)</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/6HhFlzD3vXHewPh8nGOqCDvYJgd.jpg" /></td><td>Sophia Myles</td><td>as</td><td>Darcy</td></tr><tr><td></td><td>Jack Reynor</td><td>as</td><td>Shane</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/fx5iIgRyFshstpVs2aR7dBcN6b4.jpg" /></td><td>Li Bingbing</td><td>as</td><td>Su Yueming</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/4CPGRpTuy6naurhkvRgsuae1qKR.jpg" /></td><td>Titus Welliver</td><td>as</td><td>Savoy</td></tr><tr><td><img src="http://image.tmdb.org/t/p/w45/hS5mwAx1kFqxo75uHWlsddvCD8a.jpg" /></td><td>Peter Cullen</td><td>as</td><td>Optimus Prime (voice)</td></tr></tbody></table><br /><div style="clear:both;"></div><div style="text-align:center;"><object width="420" height="345"><param name="movie" value="https://www.youtube.com/v/FZM7TeAiCs4?version=3&autoplay=0" /><param name="allowScriptAccess" value="always" /><embed src="https://www.youtube.com/v/FZM7TeAiCs4?version=3&autoplay=0" type="application/x-shockwave-flash" allowscriptaccess="always" width="420" height="345" /></object></div><div style="clear:both;"></div><h3>Available Posters</h3><div style="text-align:center;"><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/gKmSQyzsysqXFkeOuzsW7Q31OHa.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/mTdRyH1PKB5EfKLJnGLgLtrXrl4.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/yXlJT3vGwHE1dtdGl9nq0Pfq81r.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/zNlAjLyOdLbahEUFOazGMTOgPY2.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/k8utnXyWgMXKz6QVTOfwMsNrAJk.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/nHSy0FJXjn987fKtINQkBLpsow2.jpg" /><img style="padding:5px;" src="http://image.tmdb.org/t/p/w92/qs4TdS0367q2H6fbGxxTiwbZjsc.jpg" /></div><br /><div style="clear:both;"></div><h3>Some Reviews</h3><br /><div style="clear:both;"></div><div><h4 style="margin-bottom: 10px;">Search Result :</h4><div><div><b>Transformers: Age of Extinction - Wikipedia, the free ...</b><br />Transformers: Age of Extinction is an upcoming 2014 American science fiction action film based on the Transformers franchise. It is the fourth installment of the live ...</div><div><b>Transformers: Age of Extinction (2014) - IMDb</b><br />Directed by Michael Bay. With Nicola Peltz, Mark Wahlberg, Stanley Tucci, King. An automobile mechanic and his daughter make a discovery that brings down the Autobots ...</div><div><b>Transformers: Age of Extinction | Trailer & Official Movie ...</b><br />Watch the trailer for Transformers: Age of Extinction, starring Mark Wahlberg. Coming to theaters June 27th, 2014!</div><div><b>Transformers: Age of Extinction Big Game Spot - YouTube</b><br />The official Transformers: Age of Extinction BIG GAME spot starring Mark Wahlberg. http://www.TransformersMovie.com/</div><div><b>Transformers: Age of Extinction Teaser Trailer - YouTube</b><br />The official Transformers: Age of Extinction teaser trailer starring Mark Wahlberg! Official site: http://www.TransformersMovie.com/ Twitter: https ...</div><div><b>Transformers: Age of Extinction (2014) - IMDb</b><br />Directed by Michael Bay. With Mark Wahlberg, Nicola Peltz, Stanley Tucci. An automobile mechanic and his daughter make a discovery that brings down the Autobots and ...</div><div><b>Transformers: Age of Extinction | Trailer and Cast - Yahoo ...</b><br />2014 Oscar Predictions: Our Picks in Every Category. Yahoo Movies experts Thelma Adams and Kevin Polowy have updated their Oscar predictions throughout all of awards ...</div><div><b>Amazon.com : Transformers: Age of Extinction First Edition ...</b><br />The battle against extinction begins here! As the Age of Extinction dawns, the Autobots find themselves fighting powerful new enemies from both Earth and beyond.</div><div><b>'Transformers: Age of Extinction' Super Bowl Trailer</b><br />The 'Transformers: Age of Extinction' Super Bowl trailer offers fans a first look at Michael Bay's next robots (and dinobots) in disguise action adventure.</div><div><b>Transformers: Age of Extinction poster: Mark ...</b><br />Oscar-nominated actor Mark Wahlberg is front and center in a new poster for Michael Bay's "Transformers: Age of Extinction," due in theaters June 27.</div></div><div style="clear:both;"></div></div></content:encoded>
<wp:post_id>2</wp:post_id>
<wp:post_date>2014-03-14 03:33:45</wp:post_date>
<wp:post_date_gmt>2014-03-14 03:33:45</wp:post_date_gmt>
<wp:comment_status>closed</wp:comment_status>
<wp:ping_status>open</wp:ping_status>
<wp:status>publish</wp:status>
<wp:post_type>post</wp:post_type>
</item>
</channel>
</rss>

Thanks
 
Back
Top