tags:

views:

103

answers:

2

I'm trying to a Google kml tour with ruby and I get a syntax error with this code

xml = builder.gx:Tour

It doesn't like the colon. Is there a way to force it to compile this?

+1  A: 

Had to do

xml.tag!("gx:tour")
Art Vandelay
+1  A: 

Yes, and if you want to put some value, it would be something like

xml.tag!("gx:tour", "value of gx:tour", "attribute1"=>"attribute1val", "attribute2"=>"attribute2val", ..., "attributeN"=>"attributeNval") 
Tryskele