Regards,
I practice with the example of the book. I can not read the atomic values of 
the nodes.
For example, with this piece of the example:

<cardset>
     <card>
         <cardname lang = "en"> Arcane Lighthouse </ cardname>
         <types> Land </ types>
         <year> 2014 </ year>

To get the atomic value of the node year and assign it to the variable yearmem, 
I do it like this:

yearmem: = tree xpath: '/ cardset / card / year'.

But it fails. How do I get the 2014 value?

Thank you
Oswall


________________________________
De: Pharo-users <pharo-users-boun...@lists.pharo.org> en nombre de oswall 
arguedas <oswal...@hotmail.com>
Enviado: miércoles, 11 de julio de 2018 20:17:55
Para: pharo-users@lists.pharo.org
Asunto: Re: [Pharo-users] XML support for pharo


Thanks Franz and Monty. I'm working on it, everything is going very well.
The feedback when I master it.

Oswall



________________________________
De: Pharo-users <pharo-users-boun...@lists.pharo.org> en nombre de monty 
<mon...@programmer.net>
Enviado: miércoles, 11 de julio de 2018 03:32
Para: pharo-users@lists.pharo.org
Asunto: Re: [Pharo-users] XML support for pharo

This is the latest version of the XML/XPath Scraping Booklet: 
<https://files.pharo.org/books-pdfs/booklet-Scraping/2018-01-07-scrapingbook.pdf>
Scraping HTML with XPath - 
files.pharo.org<https://files.pharo.org/books-pdfs/booklet-Scraping/2018-01-07-scrapingbook.pdf>
files.pharo.org
1.6 Alargeexample • 
Siblings.Siblingsarechildnodesthathavethesameparent.Thecard-name,types,year,rarity,expansionandcardtextelementsareallsib-




___
montyos.wordpress.com

Reply via email to