According to Taylor, in the test for handling double newline entities as separators, there's a discrepancy between the result returned via our Scala api vs the java api. We are translating from JDOM to Scala Node to JDOM. So it keeps replacing entities when it doesn't need to.
The infoset uses XML entities to represent '<' and '>' However, the ampersands in the entity are getting replaced. so
<
|
&lt;
|
<
|
See test doubleNL in the following files:
daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/entities/charClassEntities.tdml
daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section06/entities/TestEntities_01.scala
daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section06/entities/TestEntities.scala
I created a version of the test that uses CDATA tags and literal '<' and '>' characters (doubleNL2) and this seems to be a good workaround.