ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
waleee has quit [Ping timeout: 240 seconds]
waleee has joined #crystal-lang
ur5us_ has joined #crystal-lang
notzmv has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 240 seconds]
notzmv has joined #crystal-lang
ejjfunky has joined #crystal-lang
ur5us_ has quit [Ping timeout: 240 seconds]
ejjfunky has quit [Quit: Leaving]
ejjfunky has joined #crystal-lang
ur5us_ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 240 seconds]
notzmv has quit [Ping timeout: 240 seconds]
ur5us_ has joined #crystal-lang
notzmv has joined #crystal-lang
<FromGitter> <Renich:matrix.org> Hello.
<FromGitter> <Renich:matrix.org> How can I access "firstname" directly? https://play.crystal-lang.org/#/r/cv8s
<FromGitter> <Renich:matrix.org> Man, I didn't know XML was so hard in crystal...
<FromGitter> <Renich:matrix.org> Been reading the API for 2 hours and can't make sense of it... :(
<yxhuvud> Hmm. xpath error messages wasn't all that nice.
<yxhuvud> Anyhow, try to add the following line at the end: `p name.as(XML::NodeSet)[0].text`
<yxhuvud> the xpath selector gives a pretty nasty union type back, hence the need to do `as`. There might be some method giving a nicer type back.
ur5us_ has quit [Ping timeout: 240 seconds]
walez has joined #crystal-lang
<yxhuvud> that looks nicer.
walez has quit [Quit: Leaving]
ejjfunky has quit [Quit: Leaving]
Melancholia[m] has joined #crystal-lang
waleee has joined #crystal-lang
waleee has quit [Ping timeout: 250 seconds]
waleee has joined #crystal-lang
ur5us_ has joined #crystal-lang
jmiven has quit [Quit: bye]
jmiven has joined #crystal-lang
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #crystal-lang