How do I Use XML attributes?

0 favourites
  • 3 posts
  • Hi every one, sorry from my english I'm from spain. I'm making a multilingual quiz wich questions appair randomly. I'm storing texts from some XMLs, this is the structure:





    <op correct=true>option3</op>


    I want to use the atribute correct to set te correct answer because the correct answers is not always the third obviusly. How can I do that or is there an other way to make easier to set the correct question?

    Thanks you every one

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is an example of simple quiz depends on XML

    I used this xml

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


    <question no="1">

    <title>Capital of France</title>






    <question no="2">








    If you change global variable you can skip to other questions

  • Thank you

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