[libxml-devel] reading from a String?

Mark Van Holstyn mvette13 at gmail.com
Fri Aug 18 13:56:27 EDT 2006


doc = XML::Parser.string( "...data..." ).parse

On 8/18/06, Grant Monroe <grant at janrain.com> wrote:
>
> p = XML::Parser.new
> p.string = yourstring
> doc = p.parse
>
>
> On 8/18/06, SteveC <steve at asklater.com> 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 steve at asklater.com http://www.asklater.com/steve/
> > _______________________________________________
> > libxml-devel mailing list
> > libxml-devel at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/libxml-devel
> >
> >
>
>
> --
> Grant Monroe
> JanRain, Inc.
> _______________________________________________
> libxml-devel mailing list
> libxml-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/libxml-devel
>



-- 
Mark Van Holstyn
mvette13 at gmail.com
http://lotswholetime.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/libxml-devel/attachments/20060818/c49ff910/attachment-0001.html 


More information about the libxml-devel mailing list