Brilliant, thanks for the super quick response.

Can I suggest that this snippet be put in the Reading example?

Here's a little patch to the README

140,148d139
< If you want to parse a xml document already in a string, you can
< extract it with
< 
<   p = XML::Parser.new
<   p.string = yourstring
<   doc = p.parse
< 
< and then use doc as in the above example.
< 


* @ 18/08/06 06:53:46 PM [EMAIL PROTECTED] wrote:
> 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
> >[email protected]
> >http://rubyforge.org/mailman/listinfo/libxml-devel
> >
> >
> 
> 
> -- 
> Grant Monroe
> JanRain, Inc.

have fun,

SteveC [EMAIL PROTECTED] http://www.asklater.com/steve/
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to