Sign In/My Account | View Cart  
advertisement

Article:
 Creating XML with Ruby and Builder
Subject: Syntax errors
Date: 2006-01-06 04:40:15
From: F. van den Berg

Nice article. I could even understand it without ever having worked with Ruby!


Trying the examples I found 2 syntax errors in the xhtml.rb file:
- the double quotes before 'text/css' in: x.style( "type"=>text/css" ) .....
- the double quotes after '' x.p { |y| y <<"Methods of interest from <code<Builder::XmlMarkup</code>


Add them and the example works fine!


Previous Message Previous Message   Next Message Next Message


Sponsored By: