Having the following xml file :
<sense>
<pos>∫</pos>
</sense>
The following code :
import 'dart:io';
import 'package:xml/xml.dart' as xml;
void main() {
File('data/sense.xml').readAsString().then((String contents) {
xml.XmlDocument document = xml.parse(contents);
xml.XmlElement sense = document.findAllElements('sense').first;
print(sense.toString());
});
}
will output
<sense>
<pos>∫</pos>
</sense>
Are there any option to prevent the entity ∫ to be decoded to ∫ ?