Xml and IE10

0 favourites
  • 3 posts
  • Hi there !

    I would like to use xml file in order to translate a game.

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


    <lang pays="FRA">

    <value id="tree">arbre</value>

    <value id="house">maison</value>


    <lang pays="US">

    <value id="tree">tree</value>

    <value id="house">house</value>




    Easy, it works fine on Firefox and Chrome, but not on IE (I have IE 10 for information) ! XML.nodeCount find the node (root/lang[FRA]/value[tree] for example), but XML.StringValue return nothing. I don't understand. Maybe it's a bug ? Or a bad encoding (I tested a lot of them of course) ? Help ! :)

    Here is a simple capx file to illustrate my problem : http://dl.dropbox.com/u/15473488/xml_and_ie.capx

    Run it on IE!



  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I found the tip !

    You must put /text() at the end of the XPath with XML.StringValue. It works on IE on that way.

    Maybe more explanations in the manual would be helpful and spared me one hour testing all encodings and way of XPath ^^

    (maybe this topic will help someone else in the future :) )

  • Thanx Sylvain you made my day <img src="smileys/smiley4.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)