p = XML::Parser.new p.string = yourstring doc = p.parse
On 8/18/06, SteveC <[EMAIL PROTECTED]> wrote: > The Document api lists new(version) and file(filename): > > http://libxml.rubyforge.org/doc/classes/XML/Document.html > > I'd like to create a document from an xml file already in a string a-la > REXML::Document.new > > Is there some other magic way of doing that? > > have fun, > > SteveC [EMAIL PROTECTED] http://www.asklater.com/steve/ > _______________________________________________ > libxml-devel mailing list > libxml-devel@rubyforge.org > http://rubyforge.org/mailman/listinfo/libxml-devel > > -- Grant Monroe JanRain, Inc. _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel