Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pharo-contributions/XML-XPath
An XPath library for Pharo
https://github.com/pharo-contributions/XML-XPath
Last synced: about 2 months ago
JSON representation
An XPath library for Pharo
- Host: GitHub
- URL: https://github.com/pharo-contributions/XML-XPath
- Owner: pharo-contributions
- License: mit
- Created: 2019-11-04T21:15:22.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-04T03:34:03.000Z (5 months ago)
- Last Synced: 2024-11-14T11:15:04.070Z (2 months ago)
- Language: Smalltalk
- Size: 2.88 MB
- Stars: 5
- Watchers: 6
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pharo - XML-XPath - Official XPath library for Pharo. (Data interexchange format)
README
# XML-XPath
[![Build Status](https://travis-ci.org/pharo-contributions/XML-XPath.svg?branch=master)](https://travis-ci.org/pharo-contributions/XML-XPath) [![Coverage Status](https://coveralls.io/repos/github/pharo-contributions/XML-XPath/badge.svg?branch=master)](https://coveralls.io/github/pharo-contributions/XML-XPath?branch=master)
[![Unit Tests](https://github.com/pharo-contributions/XML-XPath/workflows/Build/badge.svg?branch=master)](https://github.com/pharo-contributions/XML-XPath/actions?query=workflow%3ABuild)
[![Coverage Status](https://codecov.io/github/pharo-contributions/XML-XPath/coverage.svg?branch=master)](https://codecov.io/gh/pharo-contributions/XML-XPath/branch/master)[![Pharo 7](https://img.shields.io/badge/Pharo-7.0-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 8](https://img.shields.io/badge/Pharo-8.0-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 9](https://img.shields.io/badge/Pharo-9.0-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 10](https://img.shields.io/badge/Pharo-10-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 11](https://img.shields.io/badge/Pharo-11-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 12](https://img.shields.io/badge/Pharo-12-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 13](https://img.shields.io/badge/Pharo-13-%23aac9ff.svg)](https://pharo.org/download)An XPath library for [Pharo](http://www.pharo.org) leveraging the XML parsing capabilities of [XMLParser](https://github.com/pharo-contributions/XML-XMLParser). Supports XPath 1.0 syntax with extensions.
## Installation
```Smalltalk
Metacello new
baseline: 'XPath';
repository: 'github://pharo-contributions/XML-XPath/src';
load.
```## Usage
A simple example on how to use the XPath class:
```Smalltalk
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](LICENSE)## History
This project was migrated from [http://smalltalkhub.com/#!/~PharoExtras/XPath](http://smalltalkhub.com/#!/~PharoExtras/XPath)