Re: [Pharo-project] xpath queries

2012-01-05 Thread Stéphane Ducasse
I never tried. But I could have a look. Stef On Jan 4, 2012, at 4:15 PM, Tudor Girba wrote: > Actually, it seems I cannot. Or at least I do not know how. > > The problem is that Pastell is not mentioned in any group, and the > 'default' group only points to Core. So, how do people load this? >

Re: [Pharo-project] xpath queries

2012-01-05 Thread Hernán Morales Durand
There is a XPath package (http://www.squeaksource.com/XPath) which I've been using for some time. To load it: Gofer new squeaksource: 'XMLSupport'; package: 'ConfigurationOfXMLSupport'; load. (Smalltalk at: #ConfigurationOfXMLSupport) perform: #loadDefault. Gofer new

Re: [Pharo-project] xpath queries

2012-01-04 Thread ncalexan
Tudor Girba-2 wrote > > Actually, it seems I cannot. Or at least I do not know how. > > The problem is that Pastell is not mentioned in any group, and the > 'default' group only points to Core. So, how do people load this? > Hi Doru, I load ConfigurationOfXMLSupport as usual, then just loaded

Re: [Pharo-project] xpath queries

2012-01-04 Thread Tudor Girba
Actually, it seems I cannot. Or at least I do not know how. The problem is that Pastell is not mentioned in any group, and the 'default' group only points to Core. So, how do people load this? Cheers, Doru On Wed, Jan 4, 2012 at 3:02 PM, Stéphane Ducasse wrote: > We can ask giovanni because he

Re: [Pharo-project] xpath queries

2012-01-04 Thread Stéphane Ducasse
We can ask giovanni because he wrote it. Doru you can use the ConfigurationOfXMLSupport to load it. Stef On Jan 4, 2012, at 2:33 PM, Tudor Girba wrote: > Hi Alain, > > By mistake I somehow did not see this mail. Thanks for the pointer. I > did not know about it. > > Looking at the repository,

Re: [Pharo-project] xpath queries

2012-01-04 Thread Tudor Girba
Hi Alain, By mistake I somehow did not see this mail. Thanks for the pointer. I did not know about it. Looking at the repository, there is no license. Of course, this can be just a mistake, but as it stands, it mean it is not open source. Cheers, Doru On Mon, Dec 19, 2011 at 2:15 PM, Alain Fisc

Re: [Pharo-project] xpath queries

2011-12-19 Thread Tudor Girba
Hi, I tried this one, too, but it does not work :) But, just for your information, it is the grammar (not the parser) that fails on this one. Cheers, Doru On Mon, Dec 19, 2011 at 2:15 PM, Esteban Lorenzano wrote: > mmm... > this one should work: > > /top/*/second > > (this is also valid in xp

Re: [Pharo-project] xpath queries

2011-12-19 Thread Esteban Lorenzano
mmm... this one should work: /top/*/second (this is also valid in xpath, but not usually used... I'll add the wildcard as expected to next version) El 19/12/2011, a las 10:10a.m., Tudor Girba escribió: > Thanks. It works now :) > > Regarding the wildcard expression (//), is it correct to a

Re: [Pharo-project] xpath queries

2011-12-19 Thread Alain Fischer
Do you know Pastell ? http://www.squeaksource.com/Pastell.html http://wiki.squeak.org/squeak/Pastell http://blog.corriga.net/2007/06/pastell-xpath-like-library-for-squeak.html http://astares.blogspot.com/2010/01/pharosqueak-and-xml.html On 19 déc. 11, at 12:43, Tudor Girba wrote: Hi, Is there

Re: [Pharo-project] xpath queries

2011-12-19 Thread Tudor Girba
Thanks. It works now :) Regarding the wildcard expression (//), is it correct to assume that it does not work for now, or is there some hidden trigger? :) I tried this: xml := ' '. element := PPXmlParser parse: xml. element find: '/top/second'. "--> this works f

Re: [Pharo-project] xpath queries

2011-12-19 Thread Esteban Lorenzano
Hi, El 19/12/2011, a las 9:11a.m., Tudor Girba escribió: > Thanks, Esteban. > > I gave it a try, but I cannot seem to make it work (and there are no tests > :)). yes... I know that :( I will add them when I can spare some time... and a couple of examples too :P > > Here is an example of wha

Re: [Pharo-project] xpath queries

2011-12-19 Thread Tudor Girba
Thanks, Esteban. I gave it a try, but I cannot seem to make it work (and there are no tests :)). Here is an example of what I tried: xml := ' '. element := PPXmlParser parse: xml. element find: 'root/topChild' I get an invalid index error in PPXPathIndexFilter>>resolveOn:. Am I doing s

Re: [Pharo-project] xpath queries

2011-12-19 Thread Esteban Lorenzano
Hi Doru, There is a PetitXPath... not complete (just the functionality I needed). And it relies on PetitXml, not html... but I can be easily adapted. cheers, Esteban El 19/12/2011, a las 8:43a.m., Tudor Girba escribió: > Hi, > > Is there some solution for supporting XPath queries in Pharo? >

[Pharo-project] xpath queries

2011-12-19 Thread Tudor Girba
Hi, Is there some solution for supporting XPath queries in Pharo? Cheers, Doru -- www.tudorgirba.com "Every thing has its own flow"