Happy !

PharoExtras / XPath

Project infos

License MIT
Tags
Creation date 2013-06-19
Website

Monticello registration

About XPath

Author: PharoExtras team.

An XPath library for Pharo, Squeak, and Gemstone leveraging the XML parsing capabilities of XMLParser. Supports XPath 1.0 syntax with extensions.

Usage:

doc := XMLDOMParser parse: aStream.
path := XPath for: 'entry/content/@src'.
urls := path in: doc.

This will look for each 'src' attribute of each 'content' node of all 'entry' nodes in the document.