ORBIT-USER: Question regarding sample tutorial in integrating our own application with nodehandler
Arinto Murdopo
arinto at gmail.com
Wed Jan 10 08:43:17 EST 2007
Dear All
I have question regarding to the tutorial in integrating our own application
with nodehandler from this link
http://www.orbit-lab.org/wiki/HowTo/LaunchApp
What does this following code do? Does these following lines of code write
the application's properties to xml file? What the importance of these
following lines of code in overall application?
if $0 == __FILE__
require 'stringio'
require 'rexml/document'
include REXML
sio = StringIO.new()
a.to_xml.write(sio, 2)
sio.rewind
puts sio.read
sio.rewind
doc = Document.new(sio)
t = AppDefinition.from_xml(doc.root)
puts
puts "-------------------------"
puts
t.to_xml.write($stdout, 2)
end
Regards,
Arinto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://orbit-lab.org/pipermail/orbit-user/attachments/20070110/97d2dfd8/attachment.htm
More information about the orbit-user
mailing list