[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] LibXML-Ruby 0.3.6

Ross Bamford

2/23/2006 7:33:00 PM

LibXML-Ruby 0.3.6 is now available from Rubyforge. LibXML-Ruby is (as
you may have guessed) a C-language Ruby binding to the Gnome LibXML2
library, supporting a wide range of XML technologies and offering very
competitive performance across the board.

You can obtain LibXML-Ruby via Rubygems:

gem install libxml-ruby

Or as standard tarball/zip packages:

http://rubyforge.org/frs/?group_id=494&relea...

This release is essentially our 'ground zero' release after a recent
effort to revive the sleeping LibXML-Ruby project with the help of
original author Sean Chittenden. Although fixes for a number of bugs in
the build and the code are included, no new functionality has yet been
added. We are keen to gain feedback from the community, whether positive
or negative, with a view to fixing the direction of the project. Our
mailing list:

libxml-devel@rubyforge.org

You can find (a bit) more information, and API documentation, at the
project website on Rubyforge:

http://libxml.ruby...

(Please note, *not* xml-tools as was previously the case).

For more information on the XML technologies supported by LibXML2, or
for help obtaining or installing it, please see:

http://xm...

--
Ross Bamford - rosco@roscopeco.REMOVE.co.uk



27 Answers

nope

2/23/2006 7:49:00 PM

0

Will this library be renamed LibXML2-Ruby soon? The current name is
slightly misleading.

--
Posted via http://www.ruby-....


Ross Bamford

2/23/2006 8:02:00 PM

0

On Fri, 2006-02-24 at 04:48 +0900, Mr. Big wrote:
> Will this library be renamed LibXML2-Ruby soon? The current name is
> slightly misleading.
>

Yes, I have to agree. But the project was previously under the name
'libxml-ruby' and we wanted to get a release out quickly, with minimal
changes (beyond fixing things). This release should be completely
compatible with existing code, including the "require 'xml/libxml'"
part.

We're hoping to get feedback from this release and work that into the
next minor release, 0.4.0. Maybe between now and then we can slip a name
change in there ...

--
Ross Bamford - rosco@roscopeco.REMOVE.co.uk



Dominic Sisneros

2/23/2006 9:29:00 PM

0

Tried to install it under windows and it failed because I didn't have Zlib.
This is with the ruby one click installer.

Thanks

On 2/23/06, Ross Bamford <rossrt@roscopeco.co.uk> wrote:
>
> LibXML-Ruby 0.3.6 is now available from Rubyforge. LibXML-Ruby is (as
> you may have guessed) a C-language Ruby binding to the Gnome LibXML2
> library, supporting a wide range of XML technologies and offering very
> competitive performance across the board.
>
> You can obtain LibXML-Ruby via Rubygems:
>
> gem install libxml-ruby
>
> Or as standard tarball/zip packages:
>
> http://rubyforge.org/frs/?group_id=494&relea...
>
> This release is essentially our 'ground zero' release after a recent
> effort to revive the sleeping LibXML-Ruby project with the help of
> original author Sean Chittenden. Although fixes for a number of bugs in
> the build and the code are included, no new functionality has yet been
> added. We are keen to gain feedback from the community, whether positive
> or negative, with a view to fixing the direction of the project. Our
> mailing list:
>
> libxml-devel@rubyforge.org
>
> You can find (a bit) more information, and API documentation, at the
> project website on Rubyforge:
>
> http://libxml.ruby...
>
> (Please note, *not* xml-tools as was previously the case).
>
> For more information on the XML technologies supported by LibXML2, or
> for help obtaining or installing it, please see:
>
> http://xm...
>
> --
> Ross Bamford - rosco@roscopeco.REMOVE.co.uk
>
>
>

Curt Hibbs

2/24/2006 12:00:00 PM

0

Strange, because ZLib *is* included in the one-click installer.

Curt

On 2/23/06, Dominic Sisneros <dsisnero@gmail.com> wrote:
> Tried to install it under windows and it failed because I didn't have Zlib.
> This is with the ruby one click installer.
>
> Thanks
>
> On 2/23/06, Ross Bamford <rossrt@roscopeco.co.uk> wrote:
> >
> > LibXML-Ruby 0.3.6 is now available from Rubyforge. LibXML-Ruby is (as
> > you may have guessed) a C-language Ruby binding to the Gnome LibXML2
> > library, supporting a wide range of XML technologies and offering very
> > competitive performance across the board.
> >
> > You can obtain LibXML-Ruby via Rubygems:
> >
> > gem install libxml-ruby
> >
> > Or as standard tarball/zip packages:
> >
> > http://rubyforge.org/frs/?group_id=494&relea...
> >
> > This release is essentially our 'ground zero' release after a recent
> > effort to revive the sleeping LibXML-Ruby project with the help of
> > original author Sean Chittenden. Although fixes for a number of bugs in
> > the build and the code are included, no new functionality has yet been
> > added. We are keen to gain feedback from the community, whether positive
> > or negative, with a view to fixing the direction of the project. Our
> > mailing list:
> >
> > libxml-devel@rubyforge.org
> >
> > You can find (a bit) more information, and API documentation, at the
> > project website on Rubyforge:
> >
> > http://libxml.ruby...
> >
> > (Please note, *not* xml-tools as was previously the case).
> >
> > For more information on the XML technologies supported by LibXML2, or
> > for help obtaining or installing it, please see:
> >
> > http://xm...
> >
> > --
> > Ross Bamford - rosco@roscopeco.REMOVE.co.uk
> >
> >
> >
>
>


Ross Bamford

2/24/2006 1:05:00 PM

0

On Fri, 2006-02-24 at 21:00 +0900, Curt Hibbs wrote:
> On 2/23/06, Dominic Sisneros <dsisnero@gmail.com> wrote:
> > Tried to install it under windows and it failed because I didn't have Zlib.
> > This is with the ruby one click installer.
> Strange, because ZLib *is* included in the one-click installer.
>
> Curt
>
--
Ross Bamford - rosco@roscopeco.REMOVE.co.uk



Ross Bamford

2/24/2006 1:10:00 PM

0

On Fri, 2006-02-24 at 22:05 +0900, Ross Bamford wrote:
> On Fri, 2006-02-24 at 21:00 +0900, Curt Hibbs wrote:
> > On 2/23/06, Dominic Sisneros <dsisnero@gmail.com> wrote:
> > > Tried to install it under windows and it failed because I didn't have Zlib.
> > > This is with the ruby one click installer.
> > Strange, because ZLib *is* included in the one-click installer.
> >
> > Curt
> >

(Wrong button, excuse the noise)

Does it include the zlib.h header ?

If so, OP could maybe try passing --with-zlib=<path> option to a manual
install, but I'm not sure yet how it could work with gems...

--
Ross Bamford - rosco@roscopeco.REMOVE.co.uk



Curt Hibbs

2/24/2006 3:54:00 PM

0

On 2/24/06, Ross Bamford <rossrt@roscopeco.co.uk> wrote:
> On Fri, 2006-02-24 at 22:05 +0900, Ross Bamford wrote:
> > On Fri, 2006-02-24 at 21:00 +0900, Curt Hibbs wrote:
> > > On 2/23/06, Dominic Sisneros <dsisnero@gmail.com> wrote:
> > > > Tried to install it under windows and it failed because I didn't have Zlib.
> > > > This is with the ruby one click installer.
> > > Strange, because ZLib *is* included in the one-click installer.
> > >
> > > Curt
> > >
>
> (Wrong button, excuse the noise)
>
> Does it include the zlib.h header ?
>
> If so, OP could maybe try passing --with-zlib=<path> option to a manual
> install, but I'm not sure yet how it could work with gems...

No, it just includes the executable. The release notes show the exact
version, so you could download the source and extract the header.

Curt


Keith Fahlgren

2/24/2006 4:31:00 PM

0

On Thursday 23 February 2006 2:32 pm, Ross Bamford wrote:
> LibXML-Ruby 0.3.6 is now available from Rubyforge. LibXML-Ruby is (as
> you may have guessed) a C-language Ruby binding to the Gnome LibXML2
> library, supporting a wide range of XML technologies and offering
> very competitive performance across the board.

Wow, this is a pretty incredible speedup!

<meaningless:benchmark filled-with-mistakes="true">
Input doc:
keith@devel /work/frame/templates/main $ du -h main.chap.mx && wc
main.chap.mx
2.2M main.chap.mx
21063 75272 2287526 main.chap.mx


LibXML
keith@devel /work/frame/templates/main $ time ruby -e "require
'rubygems'; require 'xml/libxml'; d =
XML::Document.file('main.chap.mx'); d.find('//String').each{|n| puts
n}" | wc
2090 9200 99275

real 0m0.785s
user 0m0.728s
sys 0m0.068s


REXML:
time ruby -e "require 'rexml/document'; d =
REXML::Document.new(File.new('main.chap.mx')); REXML::XPath.each(d,
'//String/'){|n| puts n.text}" | wc
2090 9200 60422

real 1m41.021s
user 1m40.710s
sys 0m0.308s

Computer: 2 x PIII 650Mhz, 1GB RAM
</meaningless:benchmark>

Nice work, folks.

Keith


List Recv

2/24/2006 4:34:00 PM

0

Great!

Could you please explain to us uninitiated the advantages (and
disadvantages) of this over REXML?

netghost

2/24/2006 5:31:00 PM

0

This sounds great. Thanks for producing these bindings. I am really
glad to see this as it adds a simple interface for validating against
an xml schema.

Sadly I'll eventualy need to get this compiled on windows, which I've
never had much luck with ;)

.adam