<?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: The best Markup Builder I could build in Java</title>
	<atom:link href="http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/</link>
	<description></description>
	<lastBuildDate>Fri, 30 Jul 2010 06:49:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/comment-page-1/#comment-228429</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Wed, 15 Apr 2009 18:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/30/the-best-markup-builder-i-could-build-in-java/#comment-228429</guid>
		<description>p(..) + p(..) + p(..) is evaluated at this point of time, p(..),p(..),p(..) can be evaluated later, e.g. XML and JSON can be generated whenever you like, with &quot;+&quot; it needs to be generated at the time of construction.

Stephan</description>
		<content:encoded><![CDATA[<p>p(..) + p(..) + p(..) is evaluated at this point of time, p(..),p(..),p(..) can be evaluated later, e.g. XML and JSON can be generated whenever you like, with &#8220;+&#8221; it needs to be generated at the time of construction.</p>
<p>Stephan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devsmt</title>
		<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/comment-page-1/#comment-228413</link>
		<dc:creator>devsmt</dc:creator>
		<pubDate>Wed, 15 Apr 2009 12:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/30/the-best-markup-builder-i-could-build-in-java/#comment-228413</guid>
		<description>extremely interesting work, i&#039;am not a java guru but i don&#039;t see how

h1(
   p(&quot;One&quot;),
   p(&quot;Two&quot;),
   p(&quot;Three&quot;)
);

makes any difference from

h1(
   p(&quot;One&quot;)+
   p(&quot;Two&quot;)+
   p(&quot;Three&quot;)
);

thanks</description>
		<content:encoded><![CDATA[<p>extremely interesting work, i&#8217;am not a java guru but i don&#8217;t see how</p>
<p>h1(<br />
   p(&#8220;One&#8221;),<br />
   p(&#8220;Two&#8221;),<br />
   p(&#8220;Three&#8221;)<br />
);</p>
<p>makes any difference from</p>
<p>h1(<br />
   p(&#8220;One&#8221;)+<br />
   p(&#8220;Two&#8221;)+<br />
   p(&#8220;Three&#8221;)<br />
);</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fluent interfaces everywhere at Stephans Blog</title>
		<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/comment-page-1/#comment-42457</link>
		<dc:creator>Fluent interfaces everywhere at Stephans Blog</dc:creator>
		<pubDate>Tue, 04 Dec 2007 07:39:15 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/30/the-best-markup-builder-i-could-build-in-java/#comment-42457</guid>
		<description>[...] No signal, no noise.           &#171; The best Markup Builder I could build in Java [...]</description>
		<content:encoded><![CDATA[<p>[...] No signal, no noise.           &laquo; The best Markup Builder I could build in Java [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/comment-page-1/#comment-42456</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Tue, 04 Dec 2007 07:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/30/the-best-markup-builder-i-could-build-in-java/#comment-42456</guid>
		<description>@Hristo: I could think of

&lt;pre name=&quot;code&quot; class=&quot;java:nocontrols:nogutter&quot;&gt;
new Page {
   protected String render() {
             withCss(&quot;names.css&quot;)
             .withJS(&quot;mine.js&quot;)
             .with(
                html(
                   body(&quot;hello world&quot;);
                ).withId(&quot;top&quot;);
    }
&lt;/pre&gt; 
Anything fancier?

XHTML and a generater could be used for the static methods, too. An generator can be easly (~1h) written with velocity.

For perfomance one can consider writing elements on the fly, not keeping them in memory. Or compiling them to an array and optimize the compiled result. Either way you can get much more performance wiht an intelligent builder than with the naive builder approach one comes to mind at first.</description>
		<content:encoded><![CDATA[<p>@Hristo: I could think of</p>
<pre name="code" class="java:nocontrols:nogutter">
new Page {
   protected String render() {
             withCss("names.css")
             .withJS("mine.js")
             .with(
                html(
                   body("hello world");
                ).withId("top");
    }
</pre>
<p>Anything fancier?</p>
<p>XHTML and a generater could be used for the static methods, too. An generator can be easly (~1h) written with velocity.</p>
<p>For perfomance one can consider writing elements on the fly, not keeping them in memory. Or compiling them to an array and optimize the compiled result. Either way you can get much more performance wiht an intelligent builder than with the naive builder approach one comes to mind at first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/comment-page-1/#comment-42438</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Tue, 04 Dec 2007 05:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/30/the-best-markup-builder-i-could-build-in-java/#comment-42438</guid>
		<description>@Hristo: Do you have an example? I&#039;ve tried a builder with fluent interfaces and XStream and it wasn&#039;t as nice. Another version would be as an inner class, where you wouldn&#039;t need static imports.

One wouldn&#039;t use markup builders for larger content, I would use templates for that.</description>
		<content:encoded><![CDATA[<p>@Hristo: Do you have an example? I&#8217;ve tried a builder with fluent interfaces and XStream and it wasn&#8217;t as nice. Another version would be as an inner class, where you wouldn&#8217;t need static imports.</p>
<p>One wouldn&#8217;t use markup builders for larger content, I would use templates for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hristo</title>
		<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/comment-page-1/#comment-42398</link>
		<dc:creator>Hristo</dc:creator>
		<pubDate>Mon, 03 Dec 2007 23:24:27 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/30/the-best-markup-builder-i-could-build-in-java/#comment-42398</guid>
		<description>Here is better approach to get the same stuff for free:
1. Download the schema for XHTML.
2. Get JAXB and use the fluent plug-in for it to generate Java objects off XHTML schema.
3. Generate all the builder classes and for the complete XHTML with that!

One common problem with mark-up builders is that they quickly run out of memory for larger HTML content.</description>
		<content:encoded><![CDATA[<p>Here is better approach to get the same stuff for free:<br />
1. Download the schema for XHTML.<br />
2. Get JAXB and use the fluent plug-in for it to generate Java objects off XHTML schema.<br />
3. Generate all the builder classes and for the complete XHTML with that!</p>
<p>One common problem with mark-up builders is that they quickly run out of memory for larger HTML content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/comment-page-1/#comment-42292</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Mon, 03 Dec 2007 05:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/30/the-best-markup-builder-i-could-build-in-java/#comment-42292</guid>
		<description>@Andreas: Thanks. Took quite some time.</description>
		<content:encoded><![CDATA[<p>@Andreas: Thanks. Took quite some time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Andreou</title>
		<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/comment-page-1/#comment-42271</link>
		<dc:creator>Andreas Andreou</dc:creator>
		<pubDate>Mon, 03 Dec 2007 02:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/30/the-best-markup-builder-i-could-build-in-java/#comment-42271</guid>
		<description>Quite elegant ... well done man!</description>
		<content:encoded><![CDATA[<p>Quite elegant &#8230; well done man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/comment-page-1/#comment-42237</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Sun, 02 Dec 2007 20:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/30/the-best-markup-builder-i-could-build-in-java/#comment-42237</guid>
		<description>@Alex: I&#039;ll release the code with an Apache license in the SVN sometimes next week, because of time constraints not as a project currently. Perhaps if I need it for XML/ JSON in Reposita, I&#039;ll add it there. Thanks for the comment.</description>
		<content:encoded><![CDATA[<p>@Alex: I&#8217;ll release the code with an Apache license in the SVN sometimes next week, because of time constraints not as a project currently. Perhaps if I need it for XML/ JSON in Reposita, I&#8217;ll add it there. Thanks for the comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://codemonkeyism.com/the-best-markup-builder-i-could-build-in-java/comment-page-1/#comment-42228</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 02 Dec 2007 20:03:42 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/30/the-best-markup-builder-i-could-build-in-java/#comment-42228</guid>
		<description>Hello Stephan,

nice to see Java people working on concise and clear syntax for frequent problems. Nice work! Will you be releasing this code?</description>
		<content:encoded><![CDATA[<p>Hello Stephan,</p>
<p>nice to see Java people working on concise and clear syntax for frequent problems. Nice work! Will you be releasing this code?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 4/20 queries in 0.018 seconds using disk

Served from: codemonkeyism.com @ 2010-07-30 12:45:16 -->