2.05: Behavior of Xml.toString changed

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

2.05: Behavior of Xml.toString changed

James W. Hofmann
This code:

------------------

var doc = Xml.createDocument();
var elea = Xml.createElement("a");
elea.set("data", "123");

doc.addChild(elea);

trace(doc.toString());

------------------

behaves differently in 2.05 than previously. It now returns an empty  
string instead of the entire document.

Workaround is simple:

for (n in doc.elements())
    trace(n.toString());



--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: 2.05: Behavior of Xml.toString changed

Nicolas Cannasse
James Hofmann a écrit :

> This code:
>
> ------------------
>
> var doc = Xml.createDocument();
> var elea = Xml.createElement("a");
> elea.set("data", "123");
>
> doc.addChild(elea);
>
> trace(doc.toString());

Thanks for reporting,
This is a serious issue, so I have updated 2.05 binaries online.

Best,
Nicolas

--
haXe - an open source web programming language
http://haxe.org