Hello,
let me explain my problem :
I use XML on my project.
[quote:2r052iec]<story>
<line id="01">hello</line>
<line id="02">I love Construct</line>
<line id="03">But I'm a noob</line>
</story>
I call line "id" with this xpath expression using a global variable :
XML.StringValue("/story/line—/text()")
Here an exemple made by korbaach few days ago : http://s000.tinyupload.com/index.php?fi%20...%207337387723
It works great. Perfect !
NOW MY PROBLEM :
I want to do the same, but with 2 XML attributes :
[quote:2r052iec]<story>
<line id="01" name ="Cat">hello i'm Cat</line>
<line id="01" name ="Dog">hello i'm Dog</line>
<line id="02" name ="Cat">Cat loves Construct</line>
<line id="02" name ="Dog">Dog loves Construct</line>
</story>
And I want to call line using both attributes, "id" and "name" with two differents global variable :
XML.StringValue("/story/line——/text()")
And it's not working. And I don't know why.
I don't think it's a xml synthax error, when I try to call directly "id" and "name" without Global Variable, it works fine
XML.StringValue("/story/line——/text()") => OK
I've tried to make it clear, but not easy to explain, hope you can understand me and please tell me if you have an idea of what i'm doing wrong !
Thank you ^^
EDIT :
here a Capx of my problem :
http://www.vintehin.fr/construct/xml_test.capx