Hi, Does anyone know what is the currently functional XPath library? I just tested XPath from PharoExtras, but it does not work with the latest XMLParser. I also know of PetitXPath from http://source.lukas-renggli.ch/petit/, but that is for PetitXml and it actually does not work either. Is there another library that escaped me? Cheers, Doru -- www.tudorgirba.com "Every thing has its own flow"
Never tried but did you look at Pastell? On 30 Jan 2014, at 08:07, Tudor Girba <tudor@tudorgirba.com> wrote:
Hi,
Does anyone know what is the currently functional XPath library?
I just tested XPath from PharoExtras, but it does not work with the latest XMLParser.
I also know of PetitXPath from http://source.lukas-renggli.ch/petit/, but that is for PetitXml and it actually does not work either.
Is there another library that escaped me?
Cheers, Doru
-- www.tudorgirba.com
"Every thing has its own flow"
Thanks. I actually looked for it, but I could not find it. I now checked it and it works fine. However, it provides a similar but not quite the same functionality as XPath. For example, I did not find support for matching against attributes with @. Doru On Thu, Jan 30, 2014 at 8:43 AM, Torsten Bergmann <astares@gmx.de> wrote:
Have a look at Pastell
-- www.tudorgirba.com "Every thing has its own flow"
probably⦠honestly when I did it I had a very concrete problem at hands and I just implemented what I needed to solve it :S On 31 Jan 2014, at 11:44, Tudor Girba <tudor@tudorgirba.com> wrote:
Thanks. I actually looked for it, but I could not find it. I now checked it and it works fine.
However, it provides a similar but not quite the same functionality as XPath. For example, I did not find support for matching against attributes with @.
Doru
On Thu, Jan 30, 2014 at 8:43 AM, Torsten Bergmann <astares@gmx.de> wrote: Have a look at Pastell
-- www.tudorgirba.com
"Every thing has its own flow"
I used PetitXPath everyday⦠it should work (is not maintained in lukas repo, but in the moose PetitParser repo)⦠but is truth is for petitxml, and incomplete :) On 30 Jan 2014, at 08:07, Tudor Girba <tudor@tudorgirba.com> wrote:
Hi,
Does anyone know what is the currently functional XPath library?
I just tested XPath from PharoExtras, but it does not work with the latest XMLParser.
I also know of PetitXPath from http://source.lukas-renggli.ch/petit/, but that is for PetitXml and it actually does not work either.
Is there another library that escaped me?
Cheers, Doru
-- www.tudorgirba.com
"Every thing has its own flow"
Thanks. I somehow did not see PetitXPath in the PetitParser repo and that is why I went for the Lukas' repo. I now checked, and I confirm that the one from the Moose/PetitParser works fine. Cheers, Doru On Thu, Jan 30, 2014 at 9:53 AM, Esteban Lorenzano <estebanlm@gmail.com>wrote:
I used PetitXPath everyday... it should work (is not maintained in lukas repo, but in the moose PetitParser repo)... but is truth is for petitxml, and incomplete :)
On 30 Jan 2014, at 08:07, Tudor Girba <tudor@tudorgirba.com> wrote:
Hi,
Does anyone know what is the currently functional XPath library?
I just tested XPath from PharoExtras, but it does not work with the latest XMLParser.
I also know of PetitXPath from http://source.lukas-renggli.ch/petit/, but that is for PetitXml and it actually does not work either.
Is there another library that escaped me?
Cheers, Doru
-- www.tudorgirba.com
"Every thing has its own flow"
-- www.tudorgirba.com "Every thing has its own flow"
2014-01-30 Tudor Girba <tudor@tudorgirba.com>:
Hi,
Does anyone know what is the currently functional XPath library?
I just tested XPath from PharoExtras, but it does not work with the latest XMLParser.
The XPath library is not complete, although supports querying attributes with @. Try for example: | doc | doc := (XMLDOMParser onURL: 'http://unicode.org/repos/cldr/trunk/common/supplemental/supplementalData.xml') parseDocument. (XPath for: '/languageData/language/@type') in: doc. I just uploaded a new configuration for Pharo 3 (you may find it in the Configuration Browser).
participants (5)
-
Esteban Lorenzano -
Hernán Morales Durand -
Pharo4Stef -
Torsten Bergmann -
Tudor Girba