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
Welcome to Scala version 2.8.0.RC3 (JavaHotSpot(TM) 64-BitServerVM, Java1.6.0_20).
scala> xml.parsing.ConstructingParser.fromSource(io.Source.fromString("<x>a & b</x>"), preserveWS =false).document.text
res0:String= a&b
note that spaces on either side of the escaped ampersand have been lost.
I can't see why you would ever want this behavior. and I'm not an XML laywer, but section 4.4 of the XML 1.0 spec suggests that the character encoded by a character reference should be "retrieved and processed, in place of the reference itself, as though it were part of the document at the location the reference was recognized"
when preserveWS = false. example:
note that spaces on either side of the escaped ampersand have been lost.
I can't see why you would ever want this behavior. and I'm not an XML laywer, but section 4.4 of the XML 1.0 spec suggests that the character encoded by a character reference should be "retrieved and processed, in place of the reference itself, as though it were part of the document at the location the reference was recognized"
perhaps vaguely related: #3062
The text was updated successfully, but these errors were encountered: