# XML and structure of data

**URL:** <https://forums.digi.com/t/xml-and-structure-of-data/21277>\
**Category:** Rabbit Software\
**Tags:** xml, c, and, dynamic, 10\
**Created:** [April 15, 2020, 12:40pm UTC](https://forums.digi.com/t/xml-and-structure-of-data/21277 "2020-04-15T12:40:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arizzorabbit](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@arizzorabbit](https://forums.digi.com/u/arizzorabbit)\
**Post date:** [April 15, 2020, 12:40pm UTC](https://forums.digi.com/t/xml-and-structure-of-data/21277/1 "2020-04-15T12:40:50Z")

</div>

I use this structure of data ;

typedef struct AR\_zone\_t {  
int etat;  
int duree;  
int sortie;  
int indice\_valide;  
};

struct AR\_zone\_t AR\_zones[8];

It works with Dynamic c 9.62 but it seems that it does not work with 10.72D because I still have problems reading variables in a xml files

How to write the structure?

Thanck you for the answer.

---

<div class="post-metadata">

**Author:** ![TomCollins](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/tomcollins/32/37_2.png) [@TomCollins](https://forums.digi.com/u/TomCollins)\
**Post date:** [April 16, 2020, 9:37pm UTC](https://forums.digi.com/t/xml-and-structure-of-data/21277/2 "2020-04-16T21:37:05Z")

</div>

How are you indexing that array in your RabbitWeb/ZHTML files? You should be using index 0 to 7. Maybe you should email me with the ZHTML file you’re using, and what the Rabbit’s generated output looks like so I can help you troubleshoot.

---

<div class="post-metadata">

**Author:** ![arizzorabbit](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@arizzorabbit](https://forums.digi.com/u/arizzorabbit)\
**Post date:** [April 20, 2020, 7:44am UTC](https://forums.digi.com/t/xml-and-structure-of-data/21277/3 "2020-04-20T07:44:21Z")

</div>

The solution is :

With this structure

Ihave declared the variable web as in my program with Dynamic C 9.62

#web AR\_zones[@].etat groups=user(rw)  
#web AR\_zones[@].duree ((0 \< $AR\_zones[@].duree) && ($AR\_zones[@].duree \<= 20)) groups=user(rw)

This syntax don’t work with Dynamic 10.72D

You have to declare the variables like this.

#web AR\_zones groups=user(rw)
