summaryrefslogtreecommitdiff
path: root/test/files/run/t2354.scala
blob: 5419911ac38e7d39028c662966b50ddaef8a5ca0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import scala.xml.parsing._
import scala.io.Source

object Test
{
  val xml_good = "<title><![CDATA[Hello [tag]]]></title>"
  val xml_bad = "<title><![CDATA[Hello [tag] ]]></title>"

  val parser1 = ConstructingParser.fromSource(Source.fromString(xml_good),false)
  val parser2 = ConstructingParser.fromSource(Source.fromString(xml_bad),false)
  
  def main(args: Array[String]): Unit = {
    parser1.document
    parser2.document
  }
}