Entity references in XML literals

28 views
Skip to first unread message

Cay Horstmann

unread,
Oct 1, 2011, 11:05:54 AM10/1/11
to scala-l...@googlegroups.com
I don't understand how entity references work in XML literals.

<city name="San Jos&eacute;"/>.attributes("name")
res0: Seq[scala.xml.Node] = ArrayBuffer(San Jos, &;)

What happened to the eacute? I had expected an ArrayBuffer(Text("San
Jos"),
EntityRef("eacute"))

Thanks,

Cay

Alex Cruise

unread,
Oct 4, 2011, 1:05:19 PM10/4/11
to scala-l...@googlegroups.com
As far as what constitutes an *XML* entity reference... There's a lot less there than you think.
 
As for what Scala *should* do in this case, that's a discussion. :)

-0xe1a
Reply all
Reply to author
Forward
0 new messages