|
# File jabber4r/protocol.rb, line 950
result = ""
result += " "*indent if format
result += "<#{@tag}"
@attributes.each {|attrib, value| result += (' '+attrib.to_s+'="'+value.to_s+'"') }
if @data=="" and @elements.size==0
result +="/>"
result +="\n" if format
return result
end
result += ">"
result += "\n" if format and @data==""
result += @data if @data!=""
result += " "*indent if format and @data==""
result+="</#{@tag}>"
result+="\n" if format
return result
end
|