Created
March 21, 2023 13:40
-
-
Save jarnaldich/2fde059a196ec55c58372e61bbffb2b2 to your computer and use it in GitHub Desktop.
[XML Processing in Pharo] #xml #pharo #smalltalk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gofer it | |
smalltalkhubUser: 'PharoExtras' project: 'XMLParserHTML'; | |
configurationOf: 'XMLParserHTML'; | |
loadStable. | |
Gofer it | |
smalltalkhubUser: 'PharoExtras' project: 'XPath'; | |
configurationOf: 'XPath'; | |
loadStable. | |
| tree layers | | |
tree := (XMLDOMParser parseURL: 'https://geoserveis.icgc.cat/servei/catalunya/ortodarp/wms?service=WMS&request=GetCapabilities'). | |
layers := (tree xpath: '/WMS_Capabilities/Capability//Layer/Name'). | |
Clipboard clipboardText: (Character cr join: (layers collect: [ :ln | ln contentString ])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment