<?xml version="1.0" encoding="UTF-8"?>
<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>iRethinks &#187; WLW HLTM stripped</title>
	<atom:link href="http://www.irethinks.com/tag/wlw-hltm-stripped/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.irethinks.com</link>
	<description>Web about Jazz, Code, Photography and Coffee</description>
	<lastBuildDate>Wed, 14 Jul 2010 18:51:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using Windows Live Writer for Blogging(Updated)</title>
		<link>http://www.irethinks.com/2008/11/using-windows-live-writer-for-blogging/</link>
		<comments>http://www.irethinks.com/2008/11/using-windows-live-writer-for-blogging/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 11:23:31 +0000</pubDate>
		<dc:creator>Abdurahman Mashur</dc:creator>
				<category><![CDATA[Software Review]]></category>
		<category><![CDATA[Windows Live Writer]]></category>
		<category><![CDATA[WLW HLTM stripped]]></category>
		<category><![CDATA[WLW Problems]]></category>

		<guid isPermaLink="false">http://www.irethinks.com/2008/11/03/using-windows-live-writer-for-blogging/</guid>
		<description><![CDATA[I'm writing this post using Windows Live Writer. Actually, I used Live writer on my previous blog in Wordpress.com and it has no problem.]]></description>
			<content:encoded><![CDATA[<blockquote><p>div style=&#8221;padding-right: 0px; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px; display: inline&#8221; id=&#8221;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:ccaa7572-7638-4ece-a204-a8f86d61671c&#8221; class=&#8221;wlWriterSmartContent&#8221;Technorati Tags: a href=&#8221;http://technorati.com/tags/Windows+Live+Writer&#8221; rel=&#8221;tag&#8221;Windows Live Writer/a,a href=&#8221;http://technorati.com/tags/WLW&#8221; rel=&#8221;tag&#8221;WLW/a,a href=&#8221;http://technorati.com/tags/software+review&#8221; rel=&#8221;tag&#8221;software review/a/div  p#160;a href=&#8221;http://www.irethinks.com/wp-content/uploads/wlw-banneridea-with-white-b.jpg&#8221;img style=&#8221;border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px&#8221; border=&#8221;0&#8243; alt=&#8221;WLW_banneridea_with_white_b&#8221; src=&#8221;http://www.irethinks.com/wp-content/uploads/wlw-banneridea-with-white-b-thumb.jpg&#8221; width=&#8221;471&#8243; height=&#8221;229&#8243; //a /p  pI&#8217;m writing this post using Windows Live Writer. Actually, I used Live writer on my previous blog in WordPress.com and it has no problem./p  pLast night I configured my Live Writer to start posting on this blog. But it has problems with it HTML parsing..Currently, Im using WLW version 12.xxxx/p</p></blockquote>
<p>Weird Things Huh??</p>
<p>Actually, that weird code should be like this :</p>
<p><a href="$WLW_banneridea_with_white_b9.jpg"></a><a href="http://www.irethinks.com/wp-content/uploads/wlw-banneridea-with-white-b.jpg"><img class="aligncenter size-medium wp-image-130" title="wlw-banneridea-with-white-b.jpg" src="http://www.irethinks.com/wp-content/uploads/wlw-banneridea-with-white-b-300x138.jpg" alt="" width="300" height="138" /></a></p>
<p>I&#8217;m writing this post using <span style="text-decoration: line-through;">Windows Live Writer </span> WordPress online editor. Actually, I used Live writer on my previous blog in WordPress.com and it has no problem.</p>
<p>Last night I configured my Live Writer to start posting on this blog. But it has problems with its HTML parsing. Currently, Im using WLW version 12.xxxx</p>
<p>Now, I already downloaded the newest version 14.xxxx(Technical Preview Beta). And it still has the same problems.</p>
<p>Okey, I’m fed up with WLW now, Anybody knows how&#8217;s to fix that? In some forum(Yeah I googled it and don&#8217;t want to paste the link here, anyway, it doesn&#8217;t fix the problem) there are some possibilities that cause this problems :</p>
<ul>
<li>Something called mod_security in your web hosting.</li>
<li>XML-RPC has some problems, I tried to analyze the code but I still cant find the error.</li>
<li>There is some bug with libxml2.</li>
<li>There are multiple bugs on PHP ( Thanks to <a href="http://social.microsoft.com/en-US/profile/?user=Joe%20Cheng%20%5BMSFT%5D&amp;referrer=http%3A//social.microsoft.com/Forums/en-US/writerbeta/thread/62ad697b-ed19-4b0b-ae6a-32bec06b142b/">JOE CHENG</a> from Microsoft)</li>
</ul>
<div>Anyone has same problems with me?</div>
<div><strong>UPDATE:</strong></div>
<div>I still curious about this problem, and find the solution. Unfortunately, because I&#8217;m hosting this blog on a free server I can&#8217;t do this on my own hosting(Yeah, It&#8217;s free with basic support). It&#8217;s confirmed that libxml module on your PHP Server is the problem.</div>
<div></div>
<div>Here are the solution:</div>
<div></div>
<div>When you parse XML with PHP and libxml 2.7.0, all HTML entities were stripped out and this annoying bug messed up a lot of things and no one seems to care enough to fix this.</div>
<div>
<p>This bug is also reported here:<br />
<a href="http://bugs.php.net/bug.php?id=45996">http://bugs.php.net/bug.php?id=45996</a><br />
<a href="http://bugs.typo3.org/view.php?id=9359&amp;nbn=2">http://bugs.typo3.org/view.php?id=9359&amp;nbn=2</a></p>
<p>From reading these few resources, I knew I had to downgrade to an older version of libxml but since I’m not very good at Linux I had no idea how to.</p>
<p>But I finally figured this out and here is how to do it with WHM/cPanel:</p>
<p>First you will have to install an older version of libxml, I installed libxml 2.6.30.<br />
You will need an SSH client and you will have to login to your server with root, I use Putty:<br />
<a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/">http://www.chiark.greenend.org.uk/~sgtatham/putty/</a><br />
Download it, run it, enter the IP address of your server, enter root and enter your password.<br />
Then do:</p>
<p>cd /opt</p>
<p>mkdir libxml</p>
<p>cd libxml</p>
<p>wget http://xmlsoft.org/sources/libxml2-2.6.30.tar.gz</p>
<p>tar xvzf libxml2-2.6.30.tar.gz</p>
<p>cd libxml2-2.6.30</p>
<p>./configure –bindir=/opt/libxml/ –sbindir=/opt/libxml/ –libexecdir=/opt/libxml/ –datadir=/opt/libxml/ –sysconfdir=/opt/libxml/ –sharedstatedir=/opt/libxml/ –libdir=/opt/libxml/ –includedir=/opt/libxml/ –oldincludedir=/opt/libxml/</p>
<p>make &amp;&amp; make install</p>
<p>Now you will need to update yum.conf to prevent it from updating libxml back, so edit:<br />
/etc/yum.conf</p>
<p>And find the line that starts with:<br />
exclude=</p>
<p>And add libxml* to the end of it so this line should look something like this:<br />
exclude=apache* bind-chroot courier* dovecot* exim* httpd* mod_ssl* mysql* nsd* php* proftpd* pure-ftpd* spamassassin* squirrelmail* libxml*</p>
<p>Now we will have to let WHM know that we want to compile PHP with this new libxml path so go to:<br />
/var/cpanel/easy/apache/rawopts/</p>
<p>There might be a file there named: “all_php5″ (no quotes) if there is edit it if there is not create it and add these lines to the end of it:<br />
–with-libxml-dir=/opt/libxml<br />
–with-libxml-dir=/opt/libxml/</p>
<p>Now go ahead and build Apache and PHP using:<br />
Main &gt;&gt; Software &gt;&gt; Apache Update</p>
<p>You should be all set.</p>
<p>Please note:<br />
1 &#8211; Do this on your own risk.<br />
2 &#8211; I’m not very good at Linux so please let me know if there is an easier method.<br />
3 &#8211; This worked great on my CentOS.<br />
4 &#8211; If you have never used WHM’s Apache Update, go ahead and read about it first.</p></div>
<div>Thanks to some <a href="http://blog.code-head.com/fixing-libxml-php-bug-and-issues-with-html-entities-downgrading-libxml">good guy from blog.code-head.com</a>. Please click the link for complete article <img src='http://www.irethinks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</div>
<p>Technorati Tags: <a rel="tag" href="http://technorati.com/tags/Windows+Live+Writer">Windows Live Writer</a>,<a rel="tag" href="http://technorati.com/tags/WLW">WLW</a>,<a rel="tag" href="http://technorati.com/tags/software+review">software review</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.irethinks.com/2008/11/using-windows-live-writer-for-blogging/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
