From: "Pedro Côrte-Real" Date: 2006-06-30T18:47:26+09:00 Subject: Re: XML in ruby On 6/29/06, Robert Klemme wrote: > 2006/6/29, Pedro C�rte-Real : > > I am using the stream parser. And although that seems a little slow > > it's ok. What I'm stuck with being too slow is the XPath support. [...] My needs are > > very simple so this should be easy, but I was hoping there was another > > way. > > If your needs are so simple then you should be able to handle this > with the stream parser - you'll likely have to only remember all nodes > on the stack (probably along with their attributes, depending on what > criteria you have to apply) and then decide what to do with the > current node. Not really, because I want to support arbitrary XPath's and I'm not going to implement a XPath engine by myself. The XPath's aren't an internal thing, they're defined in a config file to get stuff from the XML, so I want full XPath support. Pedro.