I have had trouble with entities on Scala XML. I'd say, look up XMLEventReader on Scala Trac, post a message to the xml list (I think there is one), and if all fails, do open a ticket.
On Thu, Nov 5, 2009 at 6:12 AM, huynhjl
<jlh276-gh@...> wrote:
It seems XMLEventReader is not pickup up entity references. Here is an
example scala interpreter session (I'm escaping ampersand in my message, not
sure how this will display)
$ scala
Welcome to Scala version 2.8.0.r19070-b20091013021844 (Java HotSpot(TM)
Client VM, Java 1.6.0_13).
[...]
scala> val er = new
scala.xml.pull.XMLEventReader(scala.io.Source.fromString("<foo>1 <
2</foo>"))
er: scala.xml.pull.XMLEventReader = non-empty iterator
scala> while (er.hasNext) { println(er.next) }
EvElemStart(null,foo,,)
EvText(1 )
EvText( 2)
EvElemEnd(null,foo)
scala>
I would have expected a EvEntityRef(<) in the output. Is this a bug?
--jl
--
View this message in context: http://old.nabble.com/Entity-reference-issue-in-XMLEventReader-tp26208618p26208618.html
Sent from the Scala - User mailing list archive at Nabble.com.
--
Daniel C. Sobral
Veni, vidi, veterni.