Skip to content

Entities ignored in XML.loadString #1654

Closed
@scabug

Description

@scabug
val xmlLs = scala.xml.XML.loadString( "<a>ceci &amp; un msg</a>" )

Gives me an element with only one child of type scala.xml.Text.

Where as

val xmlCode = <a>ceci &amp; un msg</a>

Gives me an element with 3 children. The second is an scala.xml.EntityRef :

xmlCode.child(1).getClass

Then of course i have

xmlLs != xmlCode

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions