<?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: Using Java XML API</title>
	<atom:link href="http://blog.webscale.co.in/?feed=rss2&#038;p=51" rel="self" type="application/rss+xml" />
	<link>http://blog.webscale.co.in/?p=51</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 27 Jun 2010 15:52:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zashkaser</title>
		<link>http://blog.webscale.co.in/?p=51&#038;cpage=1#comment-101</link>
		<dc:creator>Zashkaser</dc:creator>
		<pubDate>Wed, 05 Aug 2009 16:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://pitfalls.wordpress.com/?p=51#comment-101</guid>
		<description>Fantastic news! :)</description>
		<content:encoded><![CDATA[<p>Fantastic news! <img src='http://blog.webscale.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fazalgupta</title>
		<link>http://blog.webscale.co.in/?p=51&#038;cpage=1#comment-100</link>
		<dc:creator>fazalgupta</dc:creator>
		<pubDate>Thu, 06 Nov 2008 06:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://pitfalls.wordpress.com/?p=51#comment-100</guid>
		<description>One interesting thing i found with html output method was the issue with self closing tags. E.g. for a tag like  which is a self closing tag, trying to generate the HTML String using html output method leaves such tags open breaking the actual well formed structure. I am not sure if this is a reported bug in Xalan but I am still figuring out why this happens.

Also as such Outputkeys Class the method parameter documentation states that xhtml can be used as a method if implemented by spefic providers. Following is the java doc

Other non-namespaced  values may be used, such as &quot;xhtml&quot;, but, if accepted, the handling of such values is implementation defined.  If any of the method values are not accepted and are not namespace qualified,  then {@link  javax.xml.transform.Transformer#setOutputProperty}
 or {@link javax.xml.transform.Transformer#setOutputProperties} will
  throw a {@link java.lang.IllegalArgumentException}.

But when I tried this with Xalan, the xhtml output method though not supported (checked by debugging in the code), it never throws an exception..

I think the people implementing XML APIs need to become more consistent to make life easier for people like us.

In this context comment given by Christopher Sahnwaldt is relevant as we may need to make well formed the html string generated.</description>
		<content:encoded><![CDATA[<p>One interesting thing i found with html output method was the issue with self closing tags. E.g. for a tag like  which is a self closing tag, trying to generate the HTML String using html output method leaves such tags open breaking the actual well formed structure. I am not sure if this is a reported bug in Xalan but I am still figuring out why this happens.</p>
<p>Also as such Outputkeys Class the method parameter documentation states that xhtml can be used as a method if implemented by spefic providers. Following is the java doc</p>
<p>Other non-namespaced  values may be used, such as &#8220;xhtml&#8221;, but, if accepted, the handling of such values is implementation defined.  If any of the method values are not accepted and are not namespace qualified,  then {@link  javax.xml.transform.Transformer#setOutputProperty}<br />
 or {@link javax.xml.transform.Transformer#setOutputProperties} will<br />
  throw a {@link java.lang.IllegalArgumentException}.</p>
<p>But when I tried this with Xalan, the xhtml output method though not supported (checked by debugging in the code), it never throws an exception..</p>
<p>I think the people implementing XML APIs need to become more consistent to make life easier for people like us.</p>
<p>In this context comment given by Christopher Sahnwaldt is relevant as we may need to make well formed the html string generated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Sahnwaldt</title>
		<link>http://blog.webscale.co.in/?p=51&#038;cpage=1#comment-99</link>
		<dc:creator>Christopher Sahnwaldt</dc:creator>
		<pubDate>Tue, 02 Sep 2008 18:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://pitfalls.wordpress.com/?p=51#comment-99</guid>
		<description>To parse HTML that may not be well-formed XML, try http://htmlcleaner.sourceforge.net</description>
		<content:encoded><![CDATA[<p>To parse HTML that may not be well-formed XML, try <a href="http://htmlcleaner.sourceforge.net" rel="nofollow">http://htmlcleaner.sourceforge.net</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
