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
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
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
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