Skip to content

GsDevKit/XML-XPath

 
 

Repository files navigation

XML-XPath

Build Status

GemStone port.

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

Installation

###Metacello

Metacello new
	baseline: 'XPath';
	repository: 'github://GsDevKit/XML-XPath:gemstone/filetree';
	load.

tODE command line

project install --url=http://gsdevkit.github.io/GsDevKit_home/XPath.ston
project load XPath

Usage

A simple example on how to use the XPath class:

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.

LICENSE

MIT License

History

This project was migrated from http://smalltalkhub.com/#!/~PharoExtras/XPath

About

An XPath library for Pharo - GemStone port

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Smalltalk 100.0%