XPath

Description

A basic XPath library for Squeak, leveraging the XML parsing capabilities now included in the base image. Modifies XMLNode to better support XPath. Handles basic XPath locator expressions for elements and attributes; returns a collection of XMLNodes matching the expression, if any.Usage:| doc results | doc := XMLDOMParser parseDocumentFromFileNamed: 'Data\supplementalData.xml'. results := ( XPath for: '/languageData/language/@type' ) in: doc. results explore

Details

Source
SqueakSource
Dialect
squeak (25% confidence)

Categories

Serialization
← Back to results