You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Of the five required predefined entities in XML, XMLEventReader does not handle ', returning an EvComment of " unknown entity apos; " instead of an EvEntityRef.
This test program:
import scala.xml.pull._
import scala.io.Source
object reader {
val src = Source.fromString("<test>&<>'"</test>")
val er = new XMLEventReader(src)
def main(args: Array[String]) {
while (er.hasNext)
Console.println(er.next)
}
}
Of the five required predefined entities in XML, XMLEventReader does not handle ', returning an EvComment of " unknown entity apos; " instead of an EvEntityRef.
This test program:
outputs:
Also, apos does not appear in XhtmlEntities.scala (may be unrelated).
Since these five entities are predefined, I would argue that the parser should auto-replace them with their equivalents so the user doesn't have to.
The text was updated successfully, but these errors were encountered: