[Solved] [Haxe] Single node XML parsing?

Im trying to parse a string to XML using).

Xml.parse(" < requestFailed error='connectionLost' errorText='gfhfghgfhfg'/ > ")

but im getting this error (HTML5 target):

uncaught exception: requestFailed does not have data

Is there any other way to parse single node xmls?


Is it because you haven’t got the header?

<?xml version="1.0" encoding="UTF-8" ?>
1 Like

Thanks, that solved the issue!