Re: [libxml-devel] Segfault when doing simple parsing

2006-08-15 Thread Ross Bamford
On Tue, 27 Jun 2006 14:14:05 +0100, Pedro CĂ´rte-Real <[EMAIL PROTECTED]> wrote: > I'm trying to use libxml to run some XPath on a document I have as a > string in memory. This is my code for parsing the document: > > parser = XML::Parser.new > parser.string = self.content > @xmldoc = parser.pars

Re: [libxml-devel] minor typo in README file example

2006-08-15 Thread Ross Bamford
Hi, On Thu, 15 Jun 2006 19:54:28 +0100, Aitor Garay-Romero <[EMAIL PROTECTED]> wrote: >In the README file the "reading xml" example is not correct. > Somewhere > it says: > >puts "Node path: #{node.path} \t Contents: #{node}" > >But it should say: > >puts "Node path: #{node.p

Re: [libxml-devel] Request to add HTML parsing

2006-08-15 Thread Ross Bamford
Hi Mark, On Tue, 18 Jul 2006 02:34:18 +0100, Mark Thomas <[EMAIL PROTECTED]> wrote: > I'm switching to Ruby from Perl, and currently I do all my HTML parsing > in > perl's XML::LibXML. Applying XPath to parse HTML is extremely powerful > and > fast, fast, fast in libxml. > > Can you add tha

Re: [libxml-devel] How to insert before, after and prepend, plus speed issue

2006-08-15 Thread Ross Bamford
Hi Trans, On Mon, 14 Aug 2006 15:24:22 +0100, TRANS <[EMAIL PROTECTED]> wrote: > I'm trying to figuere out how to add a node before and after another > node. I think for after I use sibling, but I have no ida about before. > > Also I need to prepend a node to the inner xml of a node as opposed to