this worked perfectly!

   #now lets get the nice xml to display!
    xml = Ruote::Parser.to_xml(pdef)
    doc = REXML::Document.new xml
    @nice_xml = ''
    doc.write(@nice_xml,2)


thx



On Feb 16, 2:53 pm, Torsten Schönebaum <torsten.schoeneb...@web.de>
wrote:
> Dave @ UPENN schrieb:
>
> >    I might be overlooking something, but I'd like to print out
> > existing process definition in some readable format to display to
> > users (not a single huge json line).  Are there any 'pretty print'
> > methods that i can use?  I'd even use xml, if it were indented, etc.
> > I think right now when i call to_xml on a pdef string it comes back
> > with an error.
>
> Perhaps ruote-fluo is some help:http://github.com/jmettraux/ruote-fluo
>
> Another 
> pointer:http://github.com/jmettraux/ruote/blob/ruote2.1/lib/ruote/tree_dot.rb
>
> And there is 
> Ruote::Parser.to_xml:http://github.com/jmettraux/ruote/blob/ruote2.1/lib/ruote/parser.rb#L93
>
> Cheers,
> Torsten

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to openwferu-users@googlegroups.com
to unsubscribe : send email to openwferu-users+unsubscr...@googlegroups.com
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to